add basic testdata

This commit is contained in:
j3d1 2024-12-21 20:24:18 +01:00
parent 962317884f
commit 3fb21d2258
3 changed files with 92 additions and 2 deletions

View file

@ -20,7 +20,7 @@ services:
build:
context: ../../core
dockerfile: ../deploy/testing/Dockerfile.backend
command: bash -c 'python manage.py migrate && python /code/server.py'
command: bash -c 'python manage.py migrate && python testdata.py && python /code/server.py'
environment:
- HTTP_HOST=core
- REDIS_HOST=redis
@ -31,6 +31,7 @@ services:
- DB_PASSWORD=system3
volumes:
- ../../core:/code
- ../testdata.py:/code/testdata.py
ports:
- "8000:8000"
depends_on: