-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
47 lines (47 loc) · 1.12 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
---
services:
mongo-db:
image: mongo:8.0-rc
volumes:
- ./mongo-data:/data/db
ports:
- 27017:27017
rabbitmq:
image: rabbitmq:3.13
ports:
- 5672:5672
react-frontend:
build:
context: ./
dockerfile: ./Dockerfile-react
depends_on:
- mongo-db
ports:
- 3000:3000
volumes:
- ./frontend/src:/react-app/src
environment:
- WDS_SOCKET_HOST=127.0.0.1
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
django-backend:
build:
context: ./
dockerfile: ./Dockerfile-django
depends_on:
- mongo-db
- rabbitmq
- react-frontend
ports:
- 8000:8000
worker:
build:
context: ./
dockerfile: ./Dockerfile-worker
command: celery -A pet.pes_task worker --loglevel=INFO
depends_on:
- mongo-db
- rabbitmq
- django-backend
deploy:
replicas: 1