Files
squares_game/docker-compose.yml
2026-03-12 09:30:26 -07:00

31 lines
694 B
YAML

services:
app:
image: spliceboti/squares_game:latest
network_mode: host
env_file: .env
environment:
- DATABASE_URL=postgresql://superbowl:superbowl@127.0.0.1:5432/superbowl?schema=public
volumes:
- uploads:/app/public/uploads
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
network_mode: host
env_file: .env
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U superbowl"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
pgdata:
uploads: