2024-11-01 20:42:13 +01:00
|
|
|
services:
|
|
|
|
core:
|
|
|
|
build:
|
|
|
|
context: ../../core
|
|
|
|
dockerfile: ../deploy/dev/Dockerfile.backend
|
2024-12-22 21:00:28 +01:00
|
|
|
command: bash -c 'python manage.py migrate && python testdata.py && python manage.py runserver 0.0.0.0:8000'
|
2024-11-01 20:42:13 +01:00
|
|
|
environment:
|
|
|
|
- HTTP_HOST=core
|
2024-12-22 21:00:28 +01:00
|
|
|
- DB_FILE=dev.db
|
2024-12-27 15:08:45 +01:00
|
|
|
- DEBUG_MODE_ACTIVE=yup
|
2024-11-01 20:42:13 +01:00
|
|
|
volumes:
|
|
|
|
- ../../core:/code
|
2024-12-22 21:00:28 +01:00
|
|
|
- ../testdata.py:/code/testdata.py
|
2024-11-01 20:42:13 +01:00
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
|
|
|
|
frontend:
|
|
|
|
build:
|
|
|
|
context: ../../web
|
|
|
|
dockerfile: ../deploy/dev/Dockerfile.frontend
|
|
|
|
command: npm run serve
|
|
|
|
volumes:
|
|
|
|
- ../../web:/web:ro
|
|
|
|
- /web/node_modules
|
|
|
|
- ./vue.config.js:/web/vue.config.js
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
2024-11-06 21:13:44 +01:00
|
|
|
depends_on:
|
|
|
|
- core
|