Dev ve prod derleme ayrıldı
This commit is contained in:
35
docker-compose.dev.yml
Normal file
35
docker-compose.dev.yml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
services:
|
||||||
|
frontend-dev:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
target: dev
|
||||||
|
environment:
|
||||||
|
- VITE_API_BASE_URL=http://localhost:4000
|
||||||
|
- CHOKIDAR_USEPOLLING=1
|
||||||
|
ports:
|
||||||
|
- "5173:5173"
|
||||||
|
volumes:
|
||||||
|
- .:/app
|
||||||
|
- /app/node_modules
|
||||||
|
depends_on:
|
||||||
|
- backend-dev
|
||||||
|
|
||||||
|
backend-dev:
|
||||||
|
build:
|
||||||
|
context: ./server
|
||||||
|
target: dev
|
||||||
|
environment:
|
||||||
|
- PORT=4000
|
||||||
|
- CLIENT_ORIGIN=http://localhost:5173
|
||||||
|
- SUPABASE_URL=${SUPABASE_URL}
|
||||||
|
- SUPABASE_SERVICE_ROLE_KEY=${SUPABASE_SERVICE_ROLE_KEY}
|
||||||
|
- SUPABASE_USERS_TABLE=${SUPABASE_USERS_TABLE:-users}
|
||||||
|
- JWT_SECRET=${JWT_SECRET}
|
||||||
|
- ZAI_GLM_API_KEY=${ZAI_GLM_API_KEY}
|
||||||
|
- ZAI_GLM_MODEL=${ZAI_GLM_MODEL:-glm-4.6}
|
||||||
|
- ZAI_GLM_API_URL=${ZAI_GLM_API_URL:-https://api.z.ai/api/anthropic}
|
||||||
|
ports:
|
||||||
|
- "4000:4000"
|
||||||
|
volumes:
|
||||||
|
- ./server:/app
|
||||||
|
- /app/node_modules
|
||||||
@@ -1,43 +1,4 @@
|
|||||||
services:
|
services:
|
||||||
frontend-dev:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
target: dev
|
|
||||||
environment:
|
|
||||||
- VITE_API_BASE_URL=http://localhost:4000
|
|
||||||
- CHOKIDAR_USEPOLLING=1
|
|
||||||
ports:
|
|
||||||
- "5173:5173"
|
|
||||||
volumes:
|
|
||||||
- .:/app
|
|
||||||
- /app/node_modules
|
|
||||||
depends_on:
|
|
||||||
- backend-dev
|
|
||||||
profiles:
|
|
||||||
- imgpub-app-dev
|
|
||||||
|
|
||||||
backend-dev:
|
|
||||||
build:
|
|
||||||
context: ./server
|
|
||||||
target: dev
|
|
||||||
environment:
|
|
||||||
- PORT=4000
|
|
||||||
- CLIENT_ORIGIN=http://localhost:5173
|
|
||||||
- SUPABASE_URL=${SUPABASE_URL}
|
|
||||||
- SUPABASE_SERVICE_ROLE_KEY=${SUPABASE_SERVICE_ROLE_KEY}
|
|
||||||
- SUPABASE_USERS_TABLE=${SUPABASE_USERS_TABLE:-users}
|
|
||||||
- JWT_SECRET=${JWT_SECRET}
|
|
||||||
- ZAI_GLM_API_KEY=${ZAI_GLM_API_KEY}
|
|
||||||
- ZAI_GLM_MODEL=${ZAI_GLM_MODEL:-glm-4.6}
|
|
||||||
- ZAI_GLM_API_URL=${ZAI_GLM_API_URL:-https://api.z.ai/api/anthropic}
|
|
||||||
ports:
|
|
||||||
- "4000:4000"
|
|
||||||
volumes:
|
|
||||||
- ./server:/app
|
|
||||||
- /app/node_modules
|
|
||||||
profiles:
|
|
||||||
- imgpub-app-dev
|
|
||||||
|
|
||||||
frontend-prod:
|
frontend-prod:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -50,8 +11,6 @@ services:
|
|||||||
- "4173:4173"
|
- "4173:4173"
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend-prod
|
- backend-prod
|
||||||
profiles:
|
|
||||||
- imgpub-app
|
|
||||||
|
|
||||||
backend-prod:
|
backend-prod:
|
||||||
build:
|
build:
|
||||||
@@ -69,5 +28,3 @@ services:
|
|||||||
- ZAI_GLM_API_URL=${ZAI_GLM_API_URL:-https://api.z.ai/api/anthropic}
|
- ZAI_GLM_API_URL=${ZAI_GLM_API_URL:-https://api.z.ai/api/anthropic}
|
||||||
ports:
|
ports:
|
||||||
- "4000:4000"
|
- "4000:4000"
|
||||||
profiles:
|
|
||||||
- imgpub-app
|
|
||||||
|
|||||||
Reference in New Issue
Block a user