2022-06-18 14:12:12 +02:00
|
|
|
---
|
|
|
|
version: '3.9'
|
|
|
|
services:
|
|
|
|
traefik:
|
|
|
|
image: traefik:v2.7
|
|
|
|
container_name: traefik
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "443:443"
|
|
|
|
- "80:80"
|
|
|
|
privileged: true
|
2022-09-23 16:44:20 +02:00
|
|
|
labels:
|
|
|
|
- "com.centurylinklabs.watchtower.scope=update"
|
2022-06-18 14:12:12 +02:00
|
|
|
volumes:
|
|
|
|
- "/var/run/docker.sock:/var/run/docker.sock:z"
|
|
|
|
- "./traefik.yaml:/etc/traefik/traefik.yaml:Z,ro"
|
|
|
|
- "acme:/acme"
|
|
|
|
networks:
|
|
|
|
- gateway
|
|
|
|
- default
|
|
|
|
environment:
|
|
|
|
CLOUDFLARE_DNS_API_TOKEN: "{{ traefik.CLOUDFLARE_DNS_API_TOKEN }}"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
acme:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
gateway:
|
|
|
|
name: gateway
|
|
|
|
internal: false
|
|
|
|
default:
|
|
|
|
driver: bridge
|
|
|
|
...
|