-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
49 lines (49 loc) · 980 Bytes
/
docker-compose.yaml
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
services:
rabbitmq:
image: rabbitmq:latest
ports:
- 5672:5672
volumes:
- rabbitmq:/var/lib/rabbitmq/mnesia
mongodb:
image: mongo:latest
ports:
- 27017:27017
volumes:
- mongodb:/data/db
service1:
build:
context: ./service1
ports:
- 3001:3001
environment:
RABBITMQ_URI: amqp://rabbitmq:5672
MONGODB_URI: mongodb://mongodb:27017/service1
depends_on:
- rabbitmq
- mongodb
service2:
build:
context: ./service2
ports:
- 3002:3002
environment:
RABBITMQ_URI: amqp://rabbitmq:5672
MONGODB_URI: mongodb://mongodb:27017/service2
depends_on:
- rabbitmq
- mongodb
service3:
build:
context: ./service3
ports:
- 3003:3003
environment:
RABBITMQ_URI: amqp://rabbitmq:5672
MONGODB_URI: mongodb://mongodb:27017/service3
depends_on:
- rabbitmq
- mongodb
volumes:
rabbitmq:
mongodb: