This commit is contained in:
MonkeyStrongTogether
2026-05-22 17:57:23 +02:00
parent 87ec426fed
commit f83f73d6cf
5 changed files with 195 additions and 0 deletions

21
docker-compose.dev.yml Normal file
View File

@@ -0,0 +1,21 @@
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