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.production.yml

46 lines
1.2 KiB
YAML
Raw Normal View History

---
2020-04-30 09:50:59 +00:00
version: "3.7"
services:
traefik:
ports:
2020-04-30 12:24:29 +00:00
- "80:80"
- "443:443"
2020-04-30 12:24:29 +00:00
- "8080:8080"
2020-04-30 09:50:59 +00:00
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "letsencrypt:/etc/letsencrypt"
configs:
2020-04-30 13:26:01 +00:00
- source: traefik-yml-prod-v1
target: /etc/traefik/traefik.yml
networks:
- proxy
deploy:
mode: replicated
2020-05-01 15:24:28 +00:00
replicas: 1
2020-04-30 13:23:08 +00:00
update_config:
failure_action: rollback
placement:
constraints:
- node.role == manager
labels:
- "traefik.enable=true"
2020-04-30 13:28:17 +00:00
- "traefik.http.services.traefik.loadbalancer.server.port=web"
- "traefik.http.routers.traefik.rule=Host(`traefik.swarm.autonomic.zone`)"
- "traefik.http.routers.traefik.entrypoints=web-secure"
- "traefik.http.routers.traefik.tls.certresolver=staging"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.middlewares=traefik-auth"
- "traefik.http.middlewares.traefik-auth.basicauth.users=autonomic:$$apr1$$c2uyXKda$$aRey75.6YpkdA82yGf5VN1"
networks:
proxy:
external: true
configs:
2020-04-30 13:26:01 +00:00
traefik-yml-prod-v1:
file: configs/prod/traefik.yml
2020-04-30 09:50:59 +00:00
volumes:
letsencrypt: