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/compose.yml

55 lines
1.4 KiB
YAML

---
version: "3.8"
services:
traefik:
image: "traefik:v2.2.1"
ports:
- "80:80"
- "443:443"
- "8080:8080"
- "2222:2222"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "letsencrypt:/etc/letsencrypt"
configs:
- source: traefik_yml
target: /etc/traefik/traefik.yml
- source: file_provider
target: /etc/traefik/file-provider.yml
networks:
- proxy
healthcheck:
test: ["CMD", "wget", "-qO", "-", "http://localhost:80/ping"]
interval: 10s
timeout: 10s
retries: 10
start_period: 10s
deploy:
update_config:
failure_action: rollback
order: start-first
labels:
- "traefik.enable=true"
- "traefik.http.services.traefik.loadbalancer.server.port=web"
- "traefik.http.routers.traefik.rule=Host(`traefik.autonomic.zone`)"
- "traefik.http.routers.traefik.entrypoints=web-secure"
- "traefik.http.routers.traefik.tls.certresolver=production"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.middlewares=keycloak@file"
networks:
proxy:
external: true
configs:
traefik_yml:
name: traefik_traefik_yml_v2
file: traefik.yml
file_provider:
name: traefik_file_provider_v1
file: file-provider.yml
volumes:
letsencrypt: