25 lines
599 B
YAML
25 lines
599 B
YAML
|
services:
|
||
|
elixir:
|
||
|
build: .
|
||
|
ports:
|
||
|
- "4000:4000"
|
||
|
environment:
|
||
|
DATABASE_URL: postgres://chore_tracker:chore_tracker@postgres:5432/chore_tracker
|
||
|
SECRET_KEY_BASE: "${SECRET_KEY_BASE}"
|
||
|
PHX_HOST: "${PHX_HOST}"
|
||
|
POSTAL_API_KEY: "${POSTAL_API_KEY}"
|
||
|
depends_on:
|
||
|
- postgres
|
||
|
postgres:
|
||
|
image: postgres:16-alpine
|
||
|
volumes:
|
||
|
- postgres_data:/var/lib/postgresql/data/
|
||
|
environment:
|
||
|
POSTGRES_DB: chore_tracker
|
||
|
POSTGRES_USER: chore_tracker
|
||
|
POSTGRES_PASSWORD: chore_tracker
|
||
|
restart: unless-stopped
|
||
|
|
||
|
volumes:
|
||
|
postgres_data:
|