OcrStep bileşeninde BASE_URL kontrolü güncellendi; Dockerfile ve docker-compose.yml dosyaları eklendi; geliştirme ve üretim ortamları için yapılandırmalar oluşturuldu.

This commit is contained in:
2025-11-11 00:49:51 +03:00
parent 3a82bf9ea6
commit 947ac0daf0
5 changed files with 123 additions and 8 deletions

62
docker-compose.yml Normal file
View File

@@ -0,0 +1,62 @@
services:
frontend-dev:
build:
context: .
target: dev
environment:
- VITE_API_BASE_URL=http://localhost:4000
ports:
- "5173:5173"
volumes:
- .:/app
- frontend_dev_node_modules:/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
ports:
- "4000:4000"
volumes:
- ./server:/app
- backend_dev_node_modules:/app/node_modules
profiles:
- imgpub-app-dev
frontend-prod:
build:
context: .
target: prod
args:
VITE_API_BASE_URL: http://localhost:4000
environment:
- VITE_API_BASE_URL=http://localhost:4000
ports:
- "4173:4173"
depends_on:
- backend-prod
profiles:
- imgpub-app
backend-prod:
build:
context: ./server
target: prod
environment:
- PORT=4000
- CLIENT_ORIGIN=http://localhost:4173
ports:
- "4000:4000"
profiles:
- imgpub-app
volumes:
frontend_dev_node_modules:
backend_dev_node_modules: