Dear colleagues!
I updated the traefik version to 2.11.2, but I still see TRAEFIK DEFAULT CERT instead of a custom certificate
Could you please help me find the error
I will repeat the configuration files:
docker-compose.yml
traefik:
image: traefik:v2.11.2
container_name: traefik
restart: always
command:
- '--providers.docker.exposedByDefault=false'
- '--providers.docker.network=cvat'
- '--entryPoints.web.address=:8080'
- '--providers.file.directory=/etc/traefik/rules'
- '--providers.file.directory=/etc/traefik/dynamic_conf'
# Uncomment to get Traefik dashboard
# - "--entryPoints.dashboard.address=:8090"
# - "--api.dashboard=true"
#labels:
# - traefik.enable=true
# - traefik.http.routers.dashboard.entrypoints=dashboard
# - traefik.http.routers.dashboard.service=api@internal
# - traefik.http.routers.dashboard.rule=Host(`${CVAT_HOST:-localhost}`)
# Uncomment to get Traefik dashboard
ports:
- 8080:8080
- 8090:8090
environment:
LOG.LEVEL: DEBUG
CVAT_HOST: ${CVAT_HOST:-localhost}
DJANGO_LOG_VIEWER_HOST: grafana
DJANGO_LOG_VIEWER_PORT: 3000
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ${SRV_PATH}/components/analytics/grafana_conf.yml:/etc/traefik/rules/grafana_conf.yml:ro
networks:
- cvat
docker-compose.https.yml
services:
cvat_server:
labels:
- traefik.http.routers.cvat.entrypoints=websecure
- traefik.http.routers.cvat.tls=true
cvat_ui:
labels:
- traefik.http.routers.cvat-ui.entrypoints=websecure
- traefik.http.routers.cvat-ui.tls=true
traefik:
image: traefik:v2.11.2
container_name: traefik
command:
- "--providers.docker.exposedByDefault=false"
- "--providers.docker.network=cvat"
- "--entryPoints.web.address=:80"
- "--entryPoints.web.http.redirections.entryPoint.to=websecure"
- "--entryPoints.web.http.redirections.entryPoint.scheme=https"
- "--entryPoints.websecure.address=:443"
- "--providers.file.directory=/etc/traefik/dynamic_conf"
- "--providers.file.watch=true"
ACME_EMAIL env variable}"
ports:
- 80:80
- 443:443
volumes:
- ${SRV_PATH}/certs:/etc/traefik/certs
- ${SRV_PATH}/traefik.yml:/etc/traefik/dynamic_conf/traefik.yml
traefik.yml
# Dynamic configuration
tls:
certificates:
- certFile: /etc/traefik/certs/cvat.crt
keyFile: /etc/traefik/certs/cvat.key