31 lines
893 B
Django/Jinja
31 lines
893 B
Django/Jinja
# vi: ft=yaml
|
|
version: "3"
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|
|
|
|
services:
|
|
swarm-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.kun.is`)
|
|
- 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
|