StudE-Backend/docker-compose.yml

22 lines
539 B
YAML

version: '3.9'
services:
# Python app service
python_app:
build:
context: .
dockerfile: Dockerfile
image: stude_backend:latest
ports:
- "8000:8000" # Expose port 8000 for the web server
depends_on:
- redis_server # Ensure the Redis server starts before the Python app
environment:
- PYTHONBUFFERED=1
command: ["python", "stude/manage.py", "runserver"]
# Redis server service
redis_server:
image: redis:latest
ports:
- "6379:6379" # Expose default Redis port