From 13be8e10996cd87afef1307231c9be52b4c710f2 Mon Sep 17 00:00:00 2001 From: Lokendra Bhat Date: Sun, 8 Oct 2023 20:42:28 +0545 Subject: [PATCH] changes tried --- docker-compose.override.yml | 11 ++++++++++- docker-compose.yml | 6 ++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/docker-compose.override.yml b/docker-compose.override.yml index 3cfcc866c3..2bf2b2563f 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -19,6 +19,10 @@ services: volumes: - .:/usr/src/app + postgresql: + volumes: + - "postgresql-data:/var/lib/postgresql/data" + frontend: build: context: "." @@ -26,5 +30,10 @@ services: 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: \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 459512fdd6..e99e79bc64 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: @@ -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: