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

31 lines
499 B
Plaintext
Raw Normal View History

2021-12-11 16:28:17 +01:00
# vim: ft=yaml
version: '3'
services:
app:
2021-12-23 12:01:28 +01:00
image: 'traefik:{{ traefik.version }}'
2021-12-11 16:28:17 +01:00
deploy:
mode: replicated
replicas: 1
placement:
constraints:
2021-12-12 23:39:06 +01:00
- node.hostname == alpha
2021-12-11 16:28:17 +01:00
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: