Suppression de Traefik de la configuration qui doit être installé globalement.

This commit is contained in:
2025-12-12 22:05:41 +01:00
parent 7f508c9dff
commit 51d93884bf
6 changed files with 1 additions and 61 deletions
-40
View File
@@ -6,46 +6,6 @@ networks:
services:
# Configuration de Traefik
traefik:
image: ${TRAEFIK_IMAGE}
container_name: ${CONTAINER_PREFIX}_traefik
command:
- "--api.dashboard=true"
- "--api.insecure=false"
#
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=frontend"
- "--providers.file.filename=./tls.yaml"
#
- "--entrypoints.web.address=:80"
- "--entrypoints.web.http.redirections.entrypoint.to=websecure"
- "--entrypoints.web.http.redirections.entrypoint.scheme=https"
- "--entrypoints.web.http.redirections.entrypoint.permanent=true"
- "--entrypoints.websecure.address=:443"
- "--entrypoints.websecure.http.tls=true"
#
labels:
- "traefik.enable=true"
#
- "traefik.http.routers.${CONTAINER_PREFIX}_traefik_dashboard.rule=Host(`${TRAEFIK_URL}`)"
- "traefik.http.routers.${CONTAINER_PREFIX}_traefik_dashboard.entrypoints=websecure"
- "traefik.http.routers.${CONTAINER_PREFIX}_traefik_dashboard.service=api@internal"
- "traefik.http.routers.${CONTAINER_PREFIX}_traefik_dashboard.tls=true"
- "traefik.http.middlewares.${CONTAINER_PREFIX}_traefik_dashboard-auth.basicauth.users=${TRAEFIK_HTPASSWD}"
- "traefik.http.routers.${CONTAINER_PREFIX}_traefik_dashboard.middlewares=${CONTAINER_PREFIX}_traefik_dashboard-auth@docker"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./certs:/certs:ro
networks:
- frontend
- backend
# Configuration de la base de données avec MariaDB
database:
restart: unless-stopped