mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2025-01-07 15:00:10 +01:00
25 lines
657 B
YAML
25 lines
657 B
YAML
---
|
|
# -- (Optional) When using a custom network
|
|
# networks:
|
|
# your-traefik-network:
|
|
# external: true
|
|
services:
|
|
traefik:
|
|
image: traefik:v2.10.4
|
|
container_name: traefik
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
# -- (Optional) Enable Dashboard, don't do in production
|
|
# - 8080:8080
|
|
volumes:
|
|
- ./config:/etc/traefik
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
# -- (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
|