mirror of
https://github.com/lemeow125/Borrowing-TrackerBackend.git
synced 2024-11-16 22:09:27 +08:00
24 lines
703 B
YAML
24 lines
703 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
# Django App
|
|
django_equipment_tracker:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: csm_equipment_tracker:latest
|
|
ports:
|
|
- "8092:8000"
|
|
environment:
|
|
- PYTHONBUFFERED=1
|
|
command:
|
|
[
|
|
"sh",
|
|
"-c",
|
|
"python equipment_tracker/manage.py spectacular --color --file equipment_tracker/schema.yml && python equipment_tracker/manage.py collectstatic --noinput && python equipment_tracker/manage.py makemigrations && python equipment_tracker/manage.py migrate && python equipment_tracker/manage.py runserver 0.0.0.0:8000",
|
|
]
|
|
volumes:
|
|
- .:/code # For hotreloading
|
|
|
|
volumes:
|
|
csm_equipment_tracker:
|