Skip to content

Commit

Permalink
[#715] Fix indentation in Traefik configuration in docker-compose file
Browse files Browse the repository at this point in the history
The adjustments in this commit focus on correcting the indentation in
the Traefik configuration section within the docker-compose.yml.tpl
file. The changes entail ensuring consistent and proper alignment of the
services' definitions, specifically the metadata-validation service, to
enhance readability and maintainability. By reformatting the
indentation, the Traefik configuration becomes more organized,
facilitating easier navigation and understanding of the setup.
  • Loading branch information
placek committed Apr 15, 2024
1 parent 0f3ca5a commit f7f61c2
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions scripts/govtool/config/templates/docker-compose.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -209,29 +209,29 @@ services:
- "traefik.http.services.backend.loadbalancer.server.port=9876"

metadata-validation:
build:
context: ../../govtool/metadata-validation
environment:
- PORT=3000
logging: *logging
restart: always
healthcheck:
test: ["CMD-SHELL", "curl -f 127.0.0.1:3000/health || exit 1"]
interval: 5s
timeout: 5s
retries: 5
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.metadata-validation-stripprefix.stripprefix.prefixes=/metadata-validation"
- "traefik.http.middlewares.backend-cors.headers.accesscontrolallowmethods=*"
- "traefik.http.middlewares.backend-cors.headers.accesscontrolallowheaders=*"
- "traefik.http.middlewares.backend-cors.headers.accesscontrolalloworiginlist=https://<DOMAIN><CSP_ALLOWED_HOSTS>"
- "traefik.http.middlewares.backend-cors.headers.accesscontrolmaxage=100"
- "traefik.http.routers.to-metadata-validation.rule=Host(`<DOMAIN>`) && PathPrefix(`/metadata-validation`)"
- "traefik.http.routers.to-metadata-validation.middlewares=metadata-validation-stripprefix@docker"
- "traefik.http.routers.to-metadata-validation.entrypoints=websecure"
- "traefik.http.routers.to-metadata-validation.tls.certresolver=myresolver"
- "traefik.http.services.metadata-validation.loadbalancer.server.port=3000"
build:
context: ../../govtool/metadata-validation
environment:
- PORT=3000
logging: *logging
restart: always
healthcheck:
test: ["CMD-SHELL", "curl -f 127.0.0.1:3000/health || exit 1"]
interval: 5s
timeout: 5s
retries: 5
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.metadata-validation-stripprefix.stripprefix.prefixes=/metadata-validation"
- "traefik.http.middlewares.backend-cors.headers.accesscontrolallowmethods=*"
- "traefik.http.middlewares.backend-cors.headers.accesscontrolallowheaders=*"
- "traefik.http.middlewares.backend-cors.headers.accesscontrolalloworiginlist=https://<DOMAIN><CSP_ALLOWED_HOSTS>"
- "traefik.http.middlewares.backend-cors.headers.accesscontrolmaxage=100"
- "traefik.http.routers.to-metadata-validation.rule=Host(`<DOMAIN>`) && PathPrefix(`/metadata-validation`)"
- "traefik.http.routers.to-metadata-validation.middlewares=metadata-validation-stripprefix@docker"
- "traefik.http.routers.to-metadata-validation.entrypoints=websecure"
- "traefik.http.routers.to-metadata-validation.tls.certresolver=myresolver"
- "traefik.http.services.metadata-validation.loadbalancer.server.port=3000"

frontend:
image: <REPO_URL>/frontend:${FRONTEND_TAG}
Expand Down

0 comments on commit f7f61c2

Please sign in to comment.