This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
shoarma/ansible/roles/swarm_dashboard/docker-stack.yml.j2

32 lines
893 B
Text
Raw Normal View History

2023-05-03 11:35:22 +00:00
# vi: ft=yaml
version: "3"
networks:
traefik:
external: true
services:
swarm-dashboard:
2023-05-03 11:35:22 +00:00
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
2023-07-12 16:19:02 +00:00
- traefik.http.routers.swarm-dashboard.rule=Host(`swarm.kun.is`)
2023-05-03 11:35:22 +00:00
- 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