services: bingo: # Image is set by the deploy workflow (registry/user/datacenterbingo:sha). build: . image: datacenterbingo:latest container_name: datacenterbingo # Same as the image HEALTHCHECK. Podman ignores HEALTHCHECK in OCI-format # images (what kaniko pushes), and the deploy waits for "healthy". healthcheck: test: ["CMD-SHELL","ruby -rnet/http -e 'port = ENV.fetch(\"PUMA_PORT\", \"3000\"); exit(Net::HTTP.get_response(URI(\"http://127.0.0.1:#{port}/healthz\")).code == \"200\" ? 0 : 1)'"] interval: 30s timeout: 5s start_period: 20s retries: 3 restart: unless-stopped env_file: .env networks: - traefik - storage # postgres + garage (S3) 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