32 lines
570 B
YAML
32 lines
570 B
YAML
---
|
|
version: '3.9'
|
|
services:
|
|
traefik:
|
|
image: traefik:v2.7
|
|
container_name: traefik
|
|
restart: always
|
|
ports:
|
|
- "443:443"
|
|
- "80:80"
|
|
privileged: true
|
|
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
|
|
...
|