ansible-on-prem/roles/docker/swarm/stacks/files/flowtodo-compose.yml
xbazzi e7ba86f10a
All checks were successful
Simple Mirror to GitHub / mirror (push) Successful in 35s
Feat: add scylladb + a bunch of stuff I forgot to commit earlier
2025-08-21 23:43:52 -06:00

39 lines
1.2 KiB
YAML

services:
flowtodo:
image: gitgud.foo/thegrind/flowtodo
#environment:
# If you're serving through a reverse proxy
#- OCTANE_HTTPS=false
networks:
- traefik_traefik_proxy
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
labels:
# Enable Service discovery for Traefik
- "traefik.enable=true"
# Define the flowtodo router rule
- "traefik.http.routers.flowtodo.rule=Host(`flowtodo.lan.xbazzi.com`)"
# Expose flowtodo on the HTTPS entrypoint
- "traefik.http.routers.flowtodo.entrypoints=websecure"
# - "traefik.http.routers.flowtodo.entrypoints=web"
# Enable TLS
- "traefik.http.routers.flowtodo.tls=true"
# - "traefik.http.routers.flowtodo.tls=false"
# Expose the flowtodo port number to Traefik
- "traefik.http.services.flowtodo.loadbalancer.server.port=8000"
# Custom labels
- "com.xbazzi.stack=flowtodo"
- "com.xbazzi.critical=true"
placement:
constraints:
- node.labels.zone == core
- node.labels.type != db
networks:
traefik_traefik_proxy:
external: true