e0537bf633
Allows the image to be pushed to GitHub Container Registry and pulled on deployment servers without needing the source code. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
29 lines
653 B
YAML
29 lines
653 B
YAML
services:
|
|
app:
|
|
build: .
|
|
image: ghcr.io/djsplice07/squares_game:latest
|
|
network_mode: host
|
|
env_file: .env
|
|
environment:
|
|
- DATABASE_URL=postgresql://superbowl:superbowl@127.0.0.1:5432/superbowl?schema=public
|
|
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:
|