mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 06:19:24 +08:00
Improved docker compose file
This commit is contained in:
parent
b6c7f4c900
commit
d6bef3a231
1 changed files with 6 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
version: '3.9'
|
version: '3.9'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# Python app service
|
# Django App
|
||||||
python_app:
|
django_backend:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
@ -12,4 +12,8 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- PYTHONBUFFERED=1
|
- PYTHONBUFFERED=1
|
||||||
command: ["python", "stude/manage.py", "runserver"]
|
command: ["python", "stude/manage.py", "runserver"]
|
||||||
|
volumes:
|
||||||
|
- stude:/app
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
stude:
|
Loading…
Reference in a new issue