forked from hashgraph/guardian
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-indexer-build.yml
More file actions
120 lines (108 loc) · 3.04 KB
/
docker-compose-indexer-build.yml
File metadata and controls
120 lines (108 loc) · 3.04 KB
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# This file is linted and formatted using Docker Compose Linter (https://github.com/zavoloklom/docker-compose-linter):
# npx dclint . --fix=true
# Please note variables defined in the "environment" section will override the same variables defined in the "env_file"
# See # https://docs.docker.com/compose/environment-variables/envvars-precedence/ for more details
# YAML anchor that contains common configuration elements for our services
x-service-template: &service-template
init: true
env_file:
- ./configs/.env.${GUARDIAN_ENV}.indexer.system
environment:
GUARDIAN_ENV: ${GUARDIAN_ENV}
name: guardian-indexer
services:
indexer-api-gateway:
build:
context: .
dockerfile: ./indexer-api-gateway/Dockerfile
depends_on:
- indexer-service
- message-broker
- mongo
volumes:
- ./indexer-api-gateway/configs:/usr/local/app/configs:ro
<<: *service-template
expose:
- '3021'
- '6555'
indexer-service:
build:
context: .
dockerfile: ./indexer-service/Dockerfile
depends_on:
- message-broker
- mongo
volumes:
- ./indexer-service/tls:/usr/local/app/tls:ro
- ./indexer-service/configs:/usr/local/app/configs:ro
<<: *service-template
expose:
- '6555'
- '5007'
indexer-web-proxy:
build:
context: .
dockerfile: ./indexer-web-proxy/Dockerfile
depends_on:
- indexer-api-gateway
- indexer-service
ports:
- '127.0.0.1:3005:80'
init: true
indexer-worker-service:
build:
context: .
dockerfile: ./indexer-worker-service/Dockerfile
depends_on:
- indexer-service
- message-broker
- mongo
volumes:
- ./indexer-worker-service/tls:/usr/local/app/tls:ro
- ./indexer-worker-service/configs:/usr/local/app/configs:ro
<<: *service-template
deploy:
replicas: 3
expose:
- '6555'
ipfs-check:
image: ghcr.io/ipfs/ipfs-check:main-latest
ports:
- '127.0.0.1:3333:3333'
expose:
- '3333'
ipfs-node:
image: ipfs/kubo:v0.39.0
environment:
IPFS_TELEMETRY: off # valid options: 'on' (default), 'off', 'auto' (https://github.com/ipfs/kubo/blob/master/docs/telemetry.md)
init: true
message-broker:
image: nats:2.9.25
volumes:
- ./configs/nats.conf:/etc/nats/nats.conf
ports:
- '127.0.0.1:8222:8222'
command: "-c /etc/nats/nats.conf --http_port 8222"
expose:
- '4222'
init: true
mongo:
image: mongo:6.0.26
command: "--setParameter allowDiskUseByDefault=true"
# command: "--setParameter allowDiskUseByDefault=true --quiet --logpath /dev/null" # use this command to reduce log noise
restart: always
expose:
- '27017'
init: true
mongo-express:
image: mongo-express:1.0.2-20
depends_on:
- mongo
environment:
ME_CONFIG_MONGODB_URL: mongodb://mongo:27017
ME_CONFIG_SITE_BASEURL: /mongo-admin
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: pass
expose:
- '8081'
init: true