-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-local-bdd.yml
72 lines (68 loc) · 1.44 KB
/
docker-compose-local-bdd.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
70
71
72
version: '2'
services:
api:
build:
context: .
dockerfile: Dockerfile-local-bdd
links:
- 'rabbit'
- 'redis'
- 'mongo'
environment:
- CIRCLE_NODE_INDEX=0
- CIRCLE_NODE_TOTAL=3
- MONGO=mongodb://mongo:27017/runnable_test
- MONGO_HOST=mongo
- NODE_ENV=test
- RABBITMQ_HOSTNAME=rabbit
- REDIS_IPADDRESS=redis
rabbit:
image: rabbitmq:3.4.3-management
redis:
image: redis:3.2
mongo:
image: mongo:3.2
api1:
build:
context: .
dockerfile: Dockerfile-local-bdd
links:
- 'rabbit1'
- 'redis1'
- 'mongo1'
environment:
- CIRCLE_NODE_INDEX=1
- CIRCLE_NODE_TOTAL=3
- MONGO=mongodb://mongo1:27017/runnable_test
- MONGO_HOST=mongo1
- NODE_ENV=test
- RABBITMQ_HOSTNAME=rabbit1
- REDIS_IPADDRESS=redis1
rabbit1:
image: rabbitmq:3.4.3-management
redis1:
image: redis:3.2
mongo1:
image: mongo:3.2
api2:
build:
context: .
dockerfile: Dockerfile-local-bdd
links:
- 'rabbit2'
- 'redis2'
- 'mongo2'
environment:
- CIRCLE_NODE_INDEX=2
- CIRCLE_NODE_TOTAL=3
- MONGO=mongodb://mongo2:27017/runnable_test
- MONGO_HOST=mongo2
- NODE_ENV=test
- RABBITMQ_HOSTNAME=rabbit2
- REDIS_IPADDRESS=redis2
rabbit2:
image: rabbitmq:3.4.3-management
redis2:
image: redis:3.2
mongo2:
image: mongo:3.2