forked from hashgraph/guardian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-indexer.yml
101 lines (94 loc) · 2.23 KB
/
docker-compose-indexer.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
94
95
96
97
98
99
100
101
services:
mongo:
image: mongo:6.0.16
command: "--setParameter allowDiskUseByDefault=true"
restart: always
expose:
- 27017
mongo-express:
image: mongo-express:1.0.2-20
expose:
- 8081
environment:
ME_CONFIG_MONGODB_SERVER: mongo
ME_CONFIG_MONGODB_PORT: 27017
ME_CONFIG_SITE_BASEURL: /mongo-admin # default credentials: admin/pass
depends_on:
- mongo
ipfs-node:
image: ipfs/kubo:v0.29.0
message-broker:
image: nats:2.9.25
expose:
- 4222
ports:
- '8222:8222'
command: '-c /etc/nats/nats.conf --http_port 8222'
volumes:
- ./configs/nats.conf:/etc/nats/nats.conf
indexer-worker-service:
env_file:
- ./configs/.env.${GUARDIAN_ENV}.indexer.system
build:
context: .
dockerfile: ./indexer-worker-service/Dockerfile
init: true
depends_on:
- mongo
- message-broker
- indexer-service
environment:
- GUARDIAN_ENV=${GUARDIAN_ENV}
expose:
- 6555
volumes:
- ./indexer-worker-service/tls:/usr/local/app/tls:ro
- ./indexer-worker-service/configs:/usr/local/app/configs:ro
deploy:
replicas: 3
indexer-api-gateway:
env_file:
- ./configs/.env.${GUARDIAN_ENV}.indexer.system
build:
context: .
dockerfile: ./indexer-api-gateway/Dockerfile
init: true
expose:
- 3021
- 6555
depends_on:
- mongo
- message-broker
- indexer-service
environment:
- GUARDIAN_ENV=${GUARDIAN_ENV}
volumes:
- ./indexer-api-gateway/configs:/usr/local/app/configs:ro
indexer-service:
env_file:
- ./configs/.env.${GUARDIAN_ENV}.indexer.system
build:
context: .
dockerfile: ./indexer-service/Dockerfile
init: true
volumes:
- ./indexer-service/tls:/usr/local/app/tls:ro
- ./indexer-service/configs:/usr/local/app/configs:ro
depends_on:
- mongo
- message-broker
environment:
- GUARDIAN_ENV=${GUARDIAN_ENV}
expose:
- 6555
- 5007
indexer-web-proxy:
build:
context: .
dockerfile: ./indexer-web-proxy/Dockerfile
init: true
ports:
- "3005:80"
depends_on:
- indexer-api-gateway
- indexer-service