add expand to two hypervisors

This commit is contained in:
Pim Kunis 2023-05-04 12:29:29 +02:00
parent d8787fa9a6
commit ed6723e1da
11 changed files with 105 additions and 43 deletions

View file

@ -20,7 +20,8 @@ services:
- 444:444
deploy:
placement:
constraints: [node.labels.traefik == true]
constraints:
- node.role == manager
labels:
- traefik.enable=true
- traefik.http.routers.dashboard.entrypoints=localsecure

View file

@ -1,3 +1,8 @@
- name: Create working directory
file:
path: /srv/traefik
state: directory
- name: Create Traefik network
docker_network:
name: traefik