This commit is contained in:
parent
21aba39d9b
commit
5588b217b4
3 changed files with 4 additions and 2 deletions
0
core/testdata.py
Normal file
0
core/testdata.py
Normal file
|
@ -3,7 +3,7 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ../../core
|
context: ../../core
|
||||||
dockerfile: ../deploy/dev/Dockerfile.backend
|
dockerfile: ../deploy/dev/Dockerfile.backend
|
||||||
command: bash -c 'python manage.py migrate && python manage.py runserver 0.0.0.0:8000'
|
command: bash -c 'python manage.py migrate && python testdata.py && python manage.py runserver 0.0.0.0:8000'
|
||||||
environment:
|
environment:
|
||||||
- HTTP_HOST=core
|
- HTTP_HOST=core
|
||||||
- DB_HOST=db
|
- DB_HOST=db
|
||||||
|
@ -13,6 +13,7 @@ services:
|
||||||
- DB_PASSWORD=system3
|
- DB_PASSWORD=system3
|
||||||
volumes:
|
volumes:
|
||||||
- ../../core:/code
|
- ../../core:/code
|
||||||
|
- ../testdata.py:/code/testdata.py
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
|
@ -20,7 +20,7 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ../../core
|
context: ../../core
|
||||||
dockerfile: ../deploy/testing/Dockerfile.backend
|
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:
|
environment:
|
||||||
- HTTP_HOST=core
|
- HTTP_HOST=core
|
||||||
- REDIS_HOST=redis
|
- REDIS_HOST=redis
|
||||||
|
@ -31,6 +31,7 @@ services:
|
||||||
- DB_PASSWORD=system3
|
- DB_PASSWORD=system3
|
||||||
volumes:
|
volumes:
|
||||||
- ../../core:/code
|
- ../../core:/code
|
||||||
|
- ../testdata.py:/code/testdata.py
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
Loading…
Add table
Reference in a new issue