deadhead-space-freight-tycoon/deploy/compose.yml

28 lines
756 B
YAML

# Static hosting for the web build (CR-014): Caddy serves the app; the game runs
# and saves on each player's device, so there is no server or database.
# From this folder: docker compose --env-file .env up -d --build
# Settings come from deploy/.env (copy .env.example).
name: deadhead
services:
web:
build:
context: ..
dockerfile: deploy/web.Dockerfile
args:
APP_BUILD: ${APP_BUILD:-dev}
restart: unless-stopped
environment:
SITE_ADDRESS: ${SITE_ADDRESS:?set SITE_ADDRESS in deploy/.env}
ports:
- "${HTTP_PORT:-80}:80"
- "${HTTPS_PORT:-443}:443"
- "${HTTPS_PORT:-443}:443/udp"
volumes:
- caddy-data:/data
- caddy-config:/config
volumes:
caddy-data:
caddy-config: