worldplay-website/docker-compose.yml

57 lines
1.8 KiB
YAML

version: '3.8'
services:
worldplay:
build: .
container_name: worldplay-website
restart: unless-stopped
environment:
- NODE_ENV=production
- PORT=3000
- DATA_DIR=/app/data
- ADMIN_TOKEN=${ADMIN_TOKEN:-worldplay-admin-2026}
- SMTP_HOST=${SMTP_HOST:-mail.rmail.online}
- SMTP_PORT=${SMTP_PORT:-587}
- SMTP_USER=${SMTP_USER:-noreply@jeffemmett.com}
- SMTP_PASS=${SMTP_PASS}
- GOOGLE_SHEET_ID=13_J3VFnDeuge57emi9Ob-Icm_J6RhCwRkLc9cPHk8bE
- GOOGLE_SERVICE_ACCOUNT_FILE=/app/secrets/google-service-account.json
# Listmonk newsletter integration (direct DB access)
- LISTMONK_DB_HOST=listmonk-db
- LISTMONK_DB_PORT=5432
- LISTMONK_DB_NAME=listmonk
- LISTMONK_DB_USER=listmonk
- LISTMONK_DB_PASS=listmonk_secure_2025
- LISTMONK_LIST_ID=20
volumes:
- worldplay-data:/app/data
- ./google-service-account.json:/app/secrets/google-service-account.json:ro
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-public"
# Main domains
- "traefik.http.routers.worldplay.rule=Host(`worldplay.art`) || Host(`www.worldplay.art`)"
- "traefik.http.routers.worldplay.entrypoints=web"
- "traefik.http.routers.worldplay.service=worldplay"
- "traefik.http.services.worldplay.loadbalancer.server.port=3000"
networks:
- traefik-public
- listmonk-internal
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3000/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
volumes:
worldplay-data:
driver: local
networks:
traefik-public:
external: true
listmonk-internal:
external: true
name: listmonk_listmonk-internal