32 lines
893 B
Text
32 lines
893 B
Text
|
# vi: ft=yaml
|
||
|
version: "3"
|
||
|
|
||
|
networks:
|
||
|
traefik:
|
||
|
external: true
|
||
|
|
||
|
services:
|
||
|
dashboard:
|
||
|
image: charypar/swarm-dashboard
|
||
|
volumes:
|
||
|
- type: bind
|
||
|
source: /var/run/docker.sock
|
||
|
target: /var/run/docker.sock
|
||
|
environment:
|
||
|
PORT: 80
|
||
|
networks:
|
||
|
- traefik
|
||
|
deploy:
|
||
|
placement:
|
||
|
constraints:
|
||
|
- node.role == manager
|
||
|
labels:
|
||
|
- traefik.enable=true
|
||
|
- traefik.http.routers.swarm-dashboard.entrypoints=localsecure
|
||
|
- traefik.http.routers.swarm-dashboard.rule=Host(`swarm.pim.kunis.nl`)
|
||
|
- traefik.http.routers.swarm-dashboard.tls=true
|
||
|
- traefik.http.routers.swarm-dashboard.tls.certresolver=letsencrypt
|
||
|
- traefik.http.routers.swarm-dashboard.service=swarm-dashboard
|
||
|
- traefik.http.services.swarm-dashboard.loadbalancer.server.port=80
|
||
|
- traefik.docker.network=traefik
|