-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
66 lines (62 loc) · 1.34 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "3.7"
networks:
catapult-testnet-node:
ipam:
driver: default
config:
- subnet: 172.28.0.0/16
services:
dualnode:
build: ./core-node/peernode
container_name: cat-dual-node
volumes:
- ./core-node/config/data/:/data:rw
- ./core-node/config/certs/:/certs:rw
- ./core-node/config/resources:/resources
expose:
- 7900
- 7902
ports:
- "7900:7900"
- "7902:7902"
networks:
catapult-testnet-node:
ipv4_address: 172.28.1.1
db:
image: mongo
expose:
- 27017
command: "mongod --bind_ip=db"
networks:
catapult-testnet-node:
ipv4_address: 172.28.1.2
rest:
build: ./rest
container_name: cat-rest-api
expose:
- 3000
ports:
- "3000:3000"
depends_on:
- db
- dualnode
volumes:
- ./core-node/config/certs/:/certs
- ./core-node/config/resources:/resources
networks:
catapult-testnet-node:
ipv4_address: 172.28.1.3
broker:
build: ./core-node/broker
container_name: cat-broker
volumes:
- ./core-node/config/data/:/data:rw
- ./core-node/config/certs/:/certs
- ./core-node/config/resources:/resources
depends_on:
- dualnode
- db
- rest
networks:
catapult-testnet-node:
ipv4_address: 172.28.1.4