The bingo card ran inside the asxpio container, dispatched by Host. Give the public site its own repo, image and deploy so it can be released and mirrored independently of asxp.io. Editing stays in the asxp.io admin, which keeps owning the schema and the photo pipeline; this app only reads the shared bingo tables and the bingo/ photos, through a read-only DB role and MinIO user. Tests load a snapshot of the asxpio-built schema (test/schema.sql). Assisted-by: Claude:opus-5
27 lines
989 B
YAML
27 lines
989 B
YAML
services:
|
|
bingo:
|
|
# Image is set by the deploy workflow (registry/user/datacenterbingo:sha).
|
|
build: .
|
|
image: datacenterbingo:latest
|
|
container_name: datacenterbingo
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
networks:
|
|
- traefik
|
|
- storage # postgres + minio
|
|
labels:
|
|
- "traefik.enable=true"
|
|
# Priority beats the old asxpio-bingo router while both exist.
|
|
- "traefik.http.routers.datacenterbingo.rule=Host(`${BINGO_HOST}`) || Host(`www.${BINGO_HOST}`)"
|
|
- "traefik.http.routers.datacenterbingo.priority=1000"
|
|
- "traefik.http.routers.datacenterbingo.entrypoints=websecure"
|
|
- "traefik.http.routers.datacenterbingo.tls=true"
|
|
- "traefik.http.routers.datacenterbingo.tls.certresolver=letsencrypt"
|
|
- "traefik.http.routers.datacenterbingo.service=datacenterbingo"
|
|
- "traefik.http.services.datacenterbingo.loadbalancer.server.port=3000"
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|
|
storage:
|
|
external: true
|