49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
traefik:
|
|
image: "traefik:2.3.0"
|
|
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
|
|
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_v1
|
|
file: traefik.yml
|
|
file_provider:
|
|
name: traefik_file_provider_v1
|
|
file: file-provider.yml
|
|
|
|
volumes:
|
|
letsencrypt:
|