-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
59 lines (54 loc) · 1.27 KB
/
docker-compose.dev.yml
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
54
55
56
57
58
59
services:
web:
# container_name: django_app_dev
volumes:
- .:/app # Mount local source code for live updates
# - /tmp:/tmp
ports:
- "8000:8000"
command: python src/manage.py runserver 0.0.0.0:8000 # Dev server
env_file:
- .env.dev
environment:
- DEBUG=1
db:
env_file:
- .env.dev
# ports:
# - "5432:5432"
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
redis:
ports:
- "6379:6379"
env_file:
- .env.dev
environment:
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_DB=${REDIS_DB}
rabbitmq:
ports:
- "5672:5672"
- "15672:15672"
env_file:
- .env.dev
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS}
celery_worker:
volumes:
- .:/app
command: celery -A project worker --loglevel=debug # Verbose logging for development
env_file:
- .env.dev
environment:
- DEBUG=1
nginx:
ports:
- "80:80" # Same port mapping for simplicity
volumes:
- ./config/nginx/default.config.template:/etc/nginx/conf.d/default.conf
- .:/app