Building image action builds both images first, only then notifies the deployment server. Docker compose production file added
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user