services: flowtodo: image: gitgud.foo/thegrind/flowtodo #environment: # If you're serving through a reverse proxy #- OCTANE_HTTPS=false ports: - target: 8000 published: 4000 protocol: tcp mode: ingress networks: - default - caddy_net deploy: mode: replicated replicas: {{ item.replicas }} restart_policy: condition: {{ item.restart_condition }} labels: {% for key, val in item.labels.items() %} {{ key }}: "{{ val }}" {% endfor %} placement: constraints: {% for constraint in item.constraints %} - {{ constraint }} {% endfor %} networks: caddy_net: external: true