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

44 lines
1.1 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:
- source: traefik-yml-prod
target: /etc/traefik/traefik.yml
networks:
- proxy
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
labels:
- "traefik.enable=true"
- "traefik.http.services.traefik.loadbalancer.server.port=80"
- "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:
traefik-yml-prod:
2020-04-30 10:17:12 +00:00
file: configs/prod/traefik-v1.yml
2020-04-30 09:50:59 +00:00
volumes:
letsencrypt: