49b4f017bd
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
31 lines
694 B
YAML
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:
|