deployment/roles/traefik-deploy/templates/traefik-stack.yml.j2

31 lines
479 B
Plaintext
Raw Normal View History

2021-12-11 16:28:17 +01:00
# vim: ft=yaml
version: '3'
services:
app:
image: 'traefik:2.5'
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
networks:
- public
ports:
- '80:80'
- '443:443'
volumes:
- '/srv/traefik.yml:/etc/traefik/traefik.yml'
- 'acme:/etc/traefik/acme'
- '/var/run/docker.sock:/var/run/docker.sock'
networks:
public:
external: true
volumes:
acme: