This repository has been archived on 2020-09-29. You can view files and clone it, but cannot push or open issues or pull requests.
traefik.autonomic.zone/docker-compose.yml

39 lines
1.1 KiB
YAML
Raw Normal View History

2020-04-25 10:08:00 +00:00
---
version: "3.3"
services:
traefik:
image: "traefik:v2.2"
restart: "always"
container_name: "traefik"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
2020-04-25 10:40:25 +00:00
- "/var/run/docker.sock:/var/run/docker.sock"
- "./letsencrypt:/etc/letsencrypt"
2020-04-25 10:41:00 +00:00
- "./traefik.yml:/etc/traefik/traefik.yml"
2020-04-25 10:08:00 +00:00
networks:
- proxy
deploy:
2020-04-25 10:51:44 +00:00
placement:
constraints:
- node.role == manager
2020-04-25 10:08:00 +00:00
labels:
- "traefik.enable=true"
2020-04-25 11:07:00 +00:00
- "traefik.http.services.traefik.loadbalancer.server.port=80"
2020-04-25 10:29:53 +00:00
- "traefik.http.routers.traefik.rule=Host(`traefik.swarm.autonomic.zone`)"
2020-04-25 11:08:25 +00:00
- "traefik.http.routers.traefik.entrypoints=web-secure"
2020-04-25 10:29:53 +00:00
- "traefik.http.routers.traefik.tls.certresolver=staging"
2020-04-25 10:51:44 +00:00
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.middlewares=traefik-auth"
2020-04-25 10:56:53 +00:00
- "traefik.http.middlewares.traefik-auth.basicauth.users=autonomic:$$apr1$$c2uyXKda$$aRey75.6YpkdA82yGf5VN1"
2020-04-25 10:08:00 +00:00
networks:
proxy:
external: true
volumes:
letsencrypt: