Skip to content

Commit

Permalink
[#97] Update local domain names for backend and frontend services in …
Browse files Browse the repository at this point in the history
…docker compose

This commit changes the local domain names for the backend and frontend services
in the docker-compose.yml file, as part of the initiative in ticket #85. The
modification is aimed at aligning the local development environment with the
new backend/frontend naming convention. By updating the domain names, we ensure
that the local URLs used for accessing these services reflect the updated
project structure and naming standards.

Technical Details:
- Updated the Traefik router rule for the backend service. The local domain
  name is changed from `vva-be.localhost` to `backend-govtool.localhost`. This
  alteration is specified in the label `traefik.http.routers.backend.rule`.
- For the frontend service, updated the Traefik router rule to change its
  local domain from `vva-fe.localhost` to `frontend-govtool.localhost`. This
  change is reflected in the label `traefik.http.routers.frontend.rule`.
  • Loading branch information
placek committed Feb 22, 2024
1 parent 2db5cb7 commit a5f102c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/govtool/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ services:
logging: *logging
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend.rule=Host(`${VVA_BE_DOMAIN:-vva-be.localhost}`)"
- "traefik.http.routers.backend.rule=Host(`${GOVTOOL_BE_DOMAIN:-backend-govtool.localhost}`)"
- "traefik.http.routers.backend.entrypoints=web"
- "traefik.http.services.backend.loadbalancer.server.port=9876"

frontend:
build:
context: ../../govtool/frontend
args:
- VITE_BASE_URL="https://${VA_BE_DOMAIN:-vva-be.localhost}"
- VITE_BASE_URL="https://${GOVTOOL_BE_DOMAIN:-backend-govtool.localhost}"
depends_on:
# Depend on both services to be healthy before starting.
cardano-node:
Expand All @@ -157,7 +157,7 @@ services:
logging: *logging
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=Host(`${VVA_FE_DOMAIN:-vva-fe.localhost}`)"
- "traefik.http.routers.frontend.rule=Host(`${GOVTOOL_FE_DOMAIN:-frontend-govtool.localhost}`)"
- "traefik.http.routers.frontend.entrypoints=web"
- "traefik.http.services.frontend.loadbalancer.server.port=80"

Expand Down

0 comments on commit a5f102c

Please sign in to comment.