Building image action builds both images first, only then notifies the deployment server. Docker compose production file added

This commit is contained in:
2026-08-04 20:41:21 +05:00
parent e802b684ff
commit b6deed78c8
2 changed files with 40 additions and 5 deletions
+25
View File
@@ -0,0 +1,25 @@
services:
backend:
image: git.vmn.su/max/audio_splitter_backend:latest
ports:
- "8000:8000"
volumes:
- /tmp/audio_splitter_web:/tmp/audio_splitter_web # Bind mount
environment:
- PYTHONUNBUFFERED=1
- DEBUG=1
restart: unless-stopped
frontend:
image: git.vmn.su/max/audio_splitter_frontend:latest
ports:
- "5173:80"
volumes:
- ./web/frontend:/app
- /app/node_modules
environment:
- BACKEND_URL=http://backend:8000
- VITE_BACKEND_URL=http://backend:8000
depends_on:
- backend
restart: unless-stopped