-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
93 lines (88 loc) · 2.1 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: "3.7"
services:
redis:
container_name: redis-pangaea
image: redis
networks:
pangaea-network:
ipv4_address: 172.25.0.23
aliases:
- redis.pangaea.local
redis-commander:
container_name: redis-commander-pangaea
hostname: redis-commander-pangaea
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=local:172.25.0.23:6379
networks:
pangaea-network:
ipv4_address: 172.25.0.24
aliases:
- redis-commander.pangaea.local
parrot:
container_name: parrot
build:
context: ../../www/parrot
dockerfile: local.Dockerfile
depends_on:
- redis
volumes:
- "../../www/parrot/:/usr/src/app"
networks:
pangaea-network:
ipv4_address: 172.25.0.25
aliases:
- parrot.local
command: >
bash -c "
echo 'Installing parrot packages dependencies...'
&& npm i
&& echo 'Bootstraping application...'
&& npm run start:dev
"
minion:
container_name: minion
build:
context: ../../www/minion
dockerfile: local.Dockerfile
depends_on:
- parrot
volumes:
- "../../www/minion/:/usr/src/app"
networks:
pangaea-network:
ipv4_address: 172.25.0.26
aliases:
- minion.local
command: >
bash -c "
echo 'Installing minion packages dependencies...'
&& npm i
&& echo 'Bootstraping application...'
&& npm run start:dev
"
consumer:
container_name: consumer
build:
context: ../../www/consumer
dockerfile: local.Dockerfile
volumes:
- "../../www/consumer/:/usr/src/app"
networks:
pangaea-network:
ipv4_address: 172.25.0.27
aliases:
- consumer.local
command: >
bash -c "
echo 'Installing consumer packages dependencies...'
&& npm i
&& echo 'Bootstraping application...'
&& npm run start:dev
"
networks:
pangaea-network:
ipam:
driver: default
config:
- subnet: 172.25.0.0/16