StudE-Backend/docker-compose.yml

19 lines
366 B
YAML
Raw Normal View History

2023-08-04 00:17:08 +08:00
version: '3.9'
services:
2023-08-05 14:14:07 +08:00
# Django App
django_backend:
2023-08-04 00:17:08 +08:00
build:
context: .
dockerfile: Dockerfile
image: stude_backend:latest
ports:
- "8192:8000" # Expose port 8000 for the web server
2023-08-04 00:17:08 +08:00
environment:
- PYTHONBUFFERED=1
command: ["python", "stude/manage.py", "runserver"]
2023-08-05 14:14:07 +08:00
volumes:
- stude:/app
2023-08-04 00:17:08 +08:00
2023-08-05 14:14:07 +08:00
volumes:
stude: