Skip to content

Commit

Permalink
changes tried
Browse files Browse the repository at this point in the history
  • Loading branch information
LokendraBhat committed Oct 8, 2023
1 parent 669ca25 commit 13be8e1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 10 additions & 1 deletion docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,21 @@ services:
volumes:
- .:/usr/src/app

postgresql:
volumes:
- "postgresql-data:/var/lib/postgresql/data"

frontend:
build:
context: "."
dockerfile: "./scripts/docker/Dockerfile.frontend"
volumes:
- ".:/usr/src/app"
labels:
- traefik.http.routers.frontend.rule=Host(`localhost`) || Host(`127.0.0.1`)
- TM_APP_API_URL=https://tasks.smartcitiestransport.com/api
- traefik.http.routers.frontend.rule=Host(`localhost`, `tasks.smartcitiestransport.com`) || Host(`localhost`)
# - traefik.http.routers.frontend.rule=Host(`localhost`) || Host(`127.0.0.1`)
- traefik.http.services.frontend.loadbalancer.server.port=80

volumes:
postgresql-data:
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ services:
container_name: backend
restart: always
labels:
- traefik.http.routers.backend.rule=(Host(`127.0.0.1`) || Host(`localhost`)) && PathPrefix(`/api/`)
- traefik.http.routers.backend.rule=Host(`localhost`, `tasks.smartcitiestransport.com`) && PathPrefix(`/api/`)
# - traefik.http.routers.backend.rule=(Host(`127.0.0.1`) || Host(`localhost`)) && PathPrefix(`/api/`)
- traefik.http.services.backend.loadbalancer.server.port=5000

migration:
Expand All @@ -33,7 +34,8 @@ services:
networks:
- tm-web
labels:
- traefik.http.routers.frontend.rule=Host(`127.0.0.1`) || Host(`localhost`)
- traefik.http.routers.frontend.rule=Host(`localhost`, `tasks.smartcitiestransport.com`)
# - traefik.http.routers.frontend.rule=Host(`127.0.0.1`) || Host(`localhost`)
- traefik.http.services.frontend.loadbalancer.server.port=3000

postgresql:
Expand Down

0 comments on commit 13be8e1

Please sign in to comment.