services: app: build: . environment: SIM_ADDR: 0.0.0.0:7878 DATABASE_URL: postgres://sim:sim@db:5432/sim 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: