Ci cd merge request #2
@@ -3,6 +3,9 @@ DEBUG=0
|
|||||||
MAX_UPLOAD_SIZE_MB=500
|
MAX_UPLOAD_SIZE_MB=500
|
||||||
TEMP_DIR=/tmp/audio_splitter_web
|
TEMP_DIR=/tmp/audio_splitter_web
|
||||||
CLEANUP_AFTER_SECONDS=3600
|
CLEANUP_AFTER_SECONDS=3600
|
||||||
|
BACKEND_DATA_VOLUME=/tmp/audio_splitter_web
|
||||||
|
BACKEND_PORT=8000
|
||||||
|
|
||||||
# Frontend (development)
|
# Frontend (development)
|
||||||
VITE_BACKEND_URL=http://localhost:8000
|
VITE_BACKEND_URL=http://localhost:8000
|
||||||
|
FRONTEND_PORT=5173
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ services:
|
|||||||
backend:
|
backend:
|
||||||
image: git.vmn.su/max/audio_splitter_backend:latest
|
image: git.vmn.su/max/audio_splitter_backend:latest
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "${BACKEND_PORT}:8000"
|
||||||
volumes:
|
volumes:
|
||||||
- /tmp/audio_splitter_web:/tmp/audio_splitter_web # Bind mount
|
- "${BACKEND_DATA_VOLUME}:/tmp/audio_splitter_web"
|
||||||
environment:
|
environment:
|
||||||
- PYTHONUNBUFFERED=1
|
- PYTHONUNBUFFERED=1
|
||||||
- DEBUG=1
|
- DEBUG=1
|
||||||
@@ -13,13 +13,16 @@ services:
|
|||||||
frontend:
|
frontend:
|
||||||
image: git.vmn.su/max/audio_splitter_frontend:latest
|
image: git.vmn.su/max/audio_splitter_frontend:latest
|
||||||
ports:
|
ports:
|
||||||
- "5173:80"
|
- "${FRONTEND_PORT}:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ./web/frontend:/app
|
- ./web/frontend:/app
|
||||||
- /app/node_modules
|
- node_modules:/app/node_modules
|
||||||
environment:
|
environment:
|
||||||
- BACKEND_URL=http://backend:8000
|
- BACKEND_URL=http://backend:8000
|
||||||
- VITE_BACKEND_URL=http://backend:8000
|
- VITE_BACKEND_URL=http://backend:8000
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
node_modules:
|
||||||
|
|||||||
Reference in New Issue
Block a user