forked from djangoindia/djangoindia.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (63 loc) · 1.4 KB
/
docker-compose.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
60
61
62
63
64
65
66
67
68
69
services:
djangoindia-backend: &djangoindia-backend
build:
context: ./backend
dockerfile: Dockerfile.dev
container_name: djangoindia-backend
volumes:
- logs:/app/logs
depends_on:
- postgres
# - rabbitmq
ports:
- "8000:8000"
env_file:
- .env
command: /start-local
djangoindia-worker:
<<: *djangoindia-backend
container_name: djangoindia-worker
command: celery -A djangoindia worker -l info
ports: []
depends_on:
- djangoindia-backend
- postgres
- rabbitmq
postgres:
image: postgres:14.1-alpine
container_name: postgres
env_file:
- .env
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
djangoindia-frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
container_name: djangoindia-frontend
env_file:
- .env
restart: always
depends_on:
- djangoindia-backend
- postgres
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
volumes:
- ./frontend:/app/frontend
- /app/frontend/node_modules
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- "5672:5672" # RabbitMQ default port
- "15672:15672" # Management UI port
volumes:
logs:
postgres: