c3lf-system-3/deploy/dev/docker-compose.yml
jedi ed7186cbbd
All checks were successful
/ test (push) Successful in 2m44s
/ deploy (push) Successful in 3m33s
add testdata to docker setup. use sqlite in 'dev' scenario and mailpit in 'testing'
2024-12-22 21:12:57 +01:00

28 lines
688 B
YAML

services:
core:
build:
context: ../../core
dockerfile: ../deploy/dev/Dockerfile.backend
command: bash -c 'python manage.py migrate && python testdata.py && python manage.py runserver 0.0.0.0:8000'
environment:
- HTTP_HOST=core
- DB_FILE=dev.db
volumes:
- ../../core:/code
- ../testdata.py:/code/testdata.py
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"
depends_on:
- core