34 lines
713 B
YAML
34 lines
713 B
YAML
services:
|
|
app:
|
|
build: .
|
|
environment:
|
|
SIM_ADDR: 0.0.0.0:7878
|
|
SIM_CONFIG: /etc/sim/config.rn
|
|
DATABASE_URL: postgres://sim:sim@db:5432/sim
|
|
volumes:
|
|
- ./config.rn:/etc/sim/config.rn:ro
|
|
ports:
|
|
- "7878:7878"
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
db:
|
|
image: postgres:17-alpine
|
|
environment:
|
|
POSTGRES_DB: sim
|
|
POSTGRES_USER: sim
|
|
POSTGRES_PASSWORD: sim
|
|
healthcheck:
|
|
test: [ "CMD-SHELL", "pg_isready -U sim -d sim" ]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 10
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
postgres_data:
|