mirror of
https://github.com/brockar/traefik.git
synced 2026-01-11 15:01:01 -03:00
30 lines
713 B
YAML
30 lines
713 B
YAML
---
|
|
services:
|
|
traefik:
|
|
image: docker.io/library/traefik:v3.6.2
|
|
container_name: traefik
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- /run/docker.sock:/run/docker.sock:ro
|
|
- ./config/:/etc/traefik/
|
|
- ./certs/:/var/traefik/certs/:rw
|
|
- traefik_logs:/var/log/traefik
|
|
environment:
|
|
- CF_DNS_API_TOKEN=${CF_DNS_API_TOKEN}
|
|
- TZ=America/Mendoza # Change this to your timezone
|
|
networks:
|
|
- proxy # for expose docker containers
|
|
- crowd # for crowdsec
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
traefik_logs:
|
|
|
|
networks:
|
|
proxy:
|
|
external: true # <-- (Optional) Change this to false if you want to create a new network
|
|
crowd:
|
|
external: true
|