-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
53 lines (50 loc) · 1.09 KB
/
docker-compose.dev.yml
File metadata and controls
53 lines (50 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
services:
web:
build: .
command: >
sh -c "redis-server --daemonize yes &&
poetry run python manage.py migrate &&
poetry run uvicorn myapp.asgi:application --host 0.0.0.0 --port 8000 --workers 4 --proxy-headers"
ports:
- "8000:8000"
volumes:
- .:/app
depends_on:
- redis
- celery
- tornado
env_file:
- .env.local
redis:
image: redis:alpine
ports:
- "6379:6379"
celery:
build: .
command: celery -A myapp worker --loglevel=info --concurrency=5
volumes:
- .:/app
depends_on:
- redis
env_file:
- .env.local
tornado:
build:
context: .
dockerfile: Dockerfile.tornado
command: python tornado_server.py
ports:
- "8888:8888"
volumes:
- .:/app
depends_on:
- redis
env_file:
- .env.local
environment:
- ENVIRONMENT=dev
- REALTIME_REDIS_URL=redis://redis:6379/3
- QUEUE_TTL_MINUTES=2
- MAX_EVENTS_PER_QUEUE=1000
- POLL_TIMEOUT_SECONDS=60
- HEARTBEAT_INTERVAL_SECONDS=60