version: '3.8' services: web: build: context: . dockerfile: Dockerfile.dev ports: - "8001:8000" volumes: - .:/app - /app/venv # Exclude venv environment: - SECRET_KEY=dev-secret-key-change-in-production - DEBUG=True - ALLOWED_HOSTS=localhost,127.0.0.1,web - DATABASE_URL=sqlite:///db.sqlite3 # No REDIS_URL - will use in-memory channel layer command: python manage.py runserver 0.0.0.0:8000 # Or use daphne for WebSocket testing: # command: daphne -b 0.0.0.0 -p 8000 config.asgi:application