mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-12-13 10:41:13 +01:00
27 lines
789 B
YAML
27 lines
789 B
YAML
---
|
|
# -- (Optional) When using a custom network
|
|
# networks:
|
|
# your-traefik-network:
|
|
# external: true
|
|
services:
|
|
traefik:
|
|
image: docker.io/library/traefik:v3.0.1
|
|
container_name: traefik
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
# -- (Optional) Enable Dashboard, don't do in production
|
|
# - 8080:8080
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- ./config/traefik.yaml:/etc/traefik/traefik.yaml:ro
|
|
- ./config/conf/:/etc/traefik/conf/
|
|
- ./config/certs/:/etc/traefik/certs/
|
|
# -- (Optional) When using Cloudflare as Cert Resolver
|
|
# environment:
|
|
# - CF_DNS_API_TOKEN=your-cloudflare-api-token
|
|
# -- (Optional) When using a custom network
|
|
# networks:
|
|
# - your-traefik-network
|
|
restart: unless-stopped
|