This commit is contained in:
27
docker-compose.yml
Normal file
27
docker-compose.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
services:
|
||||
backend:
|
||||
build: ./backend
|
||||
command: sh -c "python manage.py collectstatic --noinput && python manage.py migrate && gunicorn --bind 0.0.0.0:8876 --access-logfile - --error-logfile - config.wsgi:application"
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
- ./backend/media:/app/media
|
||||
ports:
|
||||
- "8876:8876"
|
||||
environment:
|
||||
- DB_NAME=scoring
|
||||
- DB_USER=quant-speed
|
||||
- DB_PASSWORD=123quant-speed
|
||||
- DB_HOST=6.6.6.66
|
||||
- DB_PORT=5432
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
args:
|
||||
- VITE_API_URL=/api
|
||||
ports:
|
||||
- "8890:8890"
|
||||
environment:
|
||||
- VITE_API_URL=http://localhost:8876/api
|
||||
depends_on:
|
||||
- backend
|
||||
Reference in New Issue
Block a user