chore(compose): add warning for insecure Traefik dashboard access and moving back docker-compose.yml

This commit is contained in:
Jean-Baptiste DONNETTE 2024-11-04 16:47:05 +01:00
parent 7b04442ce9
commit d877971d54
2 changed files with 7 additions and 1 deletions

View File

@ -55,7 +55,12 @@ services:
container_name: traefik container_name: traefik
restart: unless-stopped restart: unless-stopped
command: command:
- "--api.insecure=false" # WARNING: It is strongly discouraged to use Traefik with "--api.insecure=true"
# as this exposes the Traefik dashboard publicly without any security measures,
# which can lead to unauthorized access and potential security risks.
# For a production setup, consider enabling secure access to the dashboard
# by using authentication and restricting access to trusted IPs or networks.
- "--api.insecure=true"
- "--api.dashboard=true" - "--api.dashboard=true"
- "--providers.docker=true" - "--providers.docker=true"
- "--providers.docker.exposedbydefault=false" - "--providers.docker.exposedbydefault=false"
@ -67,6 +72,7 @@ services:
ports: ports:
- "80:80" - "80:80"
- "443:443" - "443:443"
- "8080:8080"
volumes: volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro" - "/var/run/docker.sock:/var/run/docker.sock:ro"
- traefik_certificates:/letsencrypt - traefik_certificates:/letsencrypt