diff --git a/docker-compose.yml b/docker-compose.yml index c074146..5e5bd32 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,6 +25,10 @@ services: dockerfile: Dockerfile container_name: canino_backend_prod restart: always + dns: + - 8.8.8.8 + - 1.1.1.1 + - 4.2.2.4 environment: - DATABASE_URL=postgresql://canino_prod:caninopassword_prod@db_prod:5432/caninodb_prod?schema=public - REDIS_HOST=redis_prod @@ -44,12 +48,16 @@ services: networks: - traefik_public -frontend_prod: + frontend_prod: build: context: . dockerfile: Dockerfile container_name: canino_frontend_prod restart: always + dns: + - 8.8.8.8 + - 1.1.1.1 + - 4.2.2.4 environment: - NEXT_PUBLIC_API_URL=http://backend_prod:3000 labels: diff --git a/scripts/compose.stage.yml b/scripts/compose.stage.yml index 719cc1d..7862bff 100644 --- a/scripts/compose.stage.yml +++ b/scripts/compose.stage.yml @@ -27,6 +27,10 @@ services: dockerfile: Dockerfile container_name: canino_backend_stage restart: always + dns: + - 8.8.8.8 + - 1.1.1.1 + - 4.2.2.4 environment: - DATABASE_URL=postgresql://canino_stage:caninopassword_stage@db_stage:5432/caninodb_stage?schema=public - REDIS_HOST=redis_stage @@ -56,6 +60,10 @@ services: VITE_API_URL: "https://stageapi.canina.ir" container_name: canino_frontend_stage restart: always + dns: + - 8.8.8.8 + - 1.1.1.1 + - 4.2.2.4 labels: - "traefik.enable=true" - "traefik.http.routers.canina-stage.rule=Host(`stage.canina.ir`) || Host(`stageadmin.canina.ir`)"