diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 4d21aa6..20808b4 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -29,7 +29,7 @@ services: - traefik.http.routers.headquarter-api.entrypoints=${TRAEFIK_ENTRYPOINT:-websecure} - traefik.http.routers.headquarter-api.tls.certresolver=${TRAEFIK_CERT_RESOLVER:-letsencrypt} - traefik.http.services.headquarter-api.loadbalancer.server.port=8000 - - traefik.http.routers.headquarter-api.middlewares=sec-headers@file + - traefik.http.routers.headquarter-api.middlewares=default-security-headers@file restart: unless-stopped healthcheck: test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://localhost:8000/health')\""] @@ -57,7 +57,7 @@ services: - traefik.http.routers.headquarter-web.entrypoints=${TRAEFIK_ENTRYPOINT:-websecure} - traefik.http.routers.headquarter-web.tls.certresolver=${TRAEFIK_CERT_RESOLVER:-letsencrypt} - traefik.http.services.headquarter-web.loadbalancer.server.port=8080 - - traefik.http.routers.headquarter-web.middlewares=sec-headers@file + - traefik.http.routers.headquarter-web.middlewares=default-security-headers@file restart: unless-stopped db: diff --git a/docker-compose.traefik.yml b/docker-compose.traefik.yml index ddbcd42..ec3d3fe 100644 --- a/docker-compose.traefik.yml +++ b/docker-compose.traefik.yml @@ -29,7 +29,7 @@ services: - traefik.http.routers.headquarter-api.entrypoints=${TRAEFIK_ENTRYPOINT:-websecure} - traefik.http.routers.headquarter-api.tls.certresolver=${TRAEFIK_CERT_RESOLVER:-letsencrypt} - traefik.http.services.headquarter-api.loadbalancer.server.port=8000 - - traefik.http.routers.headquarter-api.middlewares=sec-headers@file + - traefik.http.routers.headquarter-api.middlewares=default-security-headers@file restart: unless-stopped healthcheck: test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://localhost:8000/health')\""] @@ -57,7 +57,7 @@ services: - traefik.http.routers.headquarter-web.entrypoints=${TRAEFIK_ENTRYPOINT:-websecure} - traefik.http.routers.headquarter-web.tls.certresolver=${TRAEFIK_CERT_RESOLVER:-letsencrypt} - traefik.http.services.headquarter-web.loadbalancer.server.port=8080 - - traefik.http.routers.headquarter-web.middlewares=sec-headers@file + - traefik.http.routers.headquarter-web.middlewares=default-security-headers@file restart: unless-stopped db: