From 0625b45ca75a758f5dca06773064a2bc765bdfc8 Mon Sep 17 00:00:00 2001
From: parsa aghaei
Date: Sat, 15 Aug 2026 15:44:47 +0330
Subject: [PATCH] fix(compose): set build network to traefik_public for direct
nexus access
---
scripts/compose.prod.yml | 2 ++
scripts/compose.stage.yml | 2 ++
2 files changed, 4 insertions(+)
diff --git a/scripts/compose.prod.yml b/scripts/compose.prod.yml
index cc1e864..35181ca 100644
--- a/scripts/compose.prod.yml
+++ b/scripts/compose.prod.yml
@@ -25,6 +25,7 @@ services:
build:
context: ./backend
dockerfile: Dockerfile
+ network: traefik_public
container_name: canino_backend_prod
restart: always
environment:
@@ -52,6 +53,7 @@ services:
build:
context: .
dockerfile: Dockerfile
+ network: traefik_public
args:
NEXT_PUBLIC_API_URL: "https://api.canina.ir/api"
VITE_API_URL: "https://api.canina.ir"
diff --git a/scripts/compose.stage.yml b/scripts/compose.stage.yml
index 3bc37bb..51bd2ba 100644
--- a/scripts/compose.stage.yml
+++ b/scripts/compose.stage.yml
@@ -25,6 +25,7 @@ services:
build:
context: ./backend
dockerfile: Dockerfile
+ network: traefik_public
container_name: canino_backend_stage
restart: always
environment:
@@ -52,6 +53,7 @@ services:
build:
context: .
dockerfile: Dockerfile
+ network: traefik_public
args:
NEXT_PUBLIC_API_URL: "https://stageapi.canina.ir/api"
VITE_API_URL: "https://stageapi.canina.ir"