forked from archetech/archon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
184 lines (173 loc) · 5.35 KB
/
docker-compose.yml
File metadata and controls
184 lines (173 loc) · 5.35 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
include:
- docker-compose.btc-mainnet.yml
- docker-compose.btc-signet.yml
# - docker-compose.btc-testnet4.yml
services:
mongodb:
image: mongo:8.0
volumes:
- ./data/mongodb:/data/db
ports:
- 127.0.0.1:27017:27017
redis:
image: redis:8.0.4-alpine
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./data/redis.conf:/usr/local/etc/redis/redis.conf
- ./data/redis:/data
ports:
- 127.0.0.1:6379:6379
ipfs:
image: ipfs/kubo:v0.39.0
ports:
- 4001:4001
- 4001:4001/udp
- 127.0.0.1:5001:5001
volumes:
- ./data/ipfs:/data/ipfs
- ./share:/export/share
gatekeeper:
build:
context: .
dockerfile: Dockerfile.gatekeeper
image: ghcr.io/archetech/gatekeeper
environment:
- ARCHON_GATEKEEPER_PORT=4224
- ARCHON_GATEKEEPER_DB=${ARCHON_GATEKEEPER_DB}
- ARCHON_GATEKEEPER_DID_PREFIX=${ARCHON_GATEKEEPER_DID_PREFIX}
- ARCHON_GATEKEEPER_REGISTRIES=${ARCHON_GATEKEEPER_REGISTRIES}
- ARCHON_GATEKEEPER_GC_INTERVAL=${ARCHON_GATEKEEPER_GC_INTERVAL}
- ARCHON_GATEKEEPER_STATUS_INTERVAL=${ARCHON_GATEKEEPER_STATUS_INTERVAL}
- ARCHON_GATEKEEPER_SERVE_CLIENT=${ARCHON_GATEKEEPER_SERVE_CLIENT}
- ARCHON_MONGODB_URL=mongodb://mongodb:27017
- ARCHON_REDIS_URL=redis://redis:6379
- ARCHON_IPFS_URL=http://ipfs:5001/api/v0
volumes:
- ./data:/app/gatekeeper/data
user: "${ARCHON_UID}:${ARCHON_GID}"
ports:
- ${ARCHON_GATEKEEPER_PORT}:4224
depends_on:
- mongodb
- redis
- ipfs
keymaster:
build:
context: .
dockerfile: Dockerfile.keymaster
image: ghcr.io/archetech/keymaster
environment:
- ARCHON_KEYMASTER_PORT=4226
- ARCHON_GATEKEEPER_URL=http://gatekeeper:4224
- ARCHON_DISABLE_SEARCH=${ARCHON_DISABLE_SEARCH:-false}
- ARCHON_SEARCH_URL=http://gatekeeper:4224
- ARCHON_NODE_ID=${ARCHON_NODE_ID}
- ARCHON_KEYMASTER_DB=${ARCHON_KEYMASTER_DB}
- ARCHON_ENCRYPTED_PASSPHRASE=${ARCHON_ENCRYPTED_PASSPHRASE}
- ARCHON_WALLET_CACHE=${ARCHON_WALLET_CACHE}
- ARCHON_DEFAULT_REGISTRY=${ARCHON_DEFAULT_REGISTRY}
- ARCHON_KEYMASTER_SERVE_CLIENT=${ARCHON_KEYMASTER_SERVE_CLIENT}
- ARCHON_MONGODB_URL=mongodb://mongodb:27017
- ARCHON_REDIS_URL=redis://redis:6379
volumes:
- ./data:/app/keymaster/data
user: "${ARCHON_UID}:${ARCHON_GID}"
ports:
- ${ARCHON_KEYMASTER_PORT}:4226
depends_on:
- gatekeeper
- redis
- mongodb
hyperswarm-mediator:
build:
context: .
dockerfile: Dockerfile.hyperswarm
image: ghcr.io/archetech/hyperswarm-mediator
environment:
- ARCHON_GATEKEEPER_URL=http://gatekeeper:4224
- ARCHON_KEYMASTER_URL=http://keymaster:4226
- ARCHON_IPFS_URL=http://ipfs:5001/api/v0
- ARCHON_NODE_ID=${ARCHON_NODE_ID}
- ARCHON_NODE_NAME=${ARCHON_NODE_NAME}
- ARCHON_PROTOCOL=${ARCHON_PROTOCOL}
- ARCHON_HYPR_EXPORT_INTERVAL=${ARCHON_HYPR_EXPORT_INTERVAL}
user: "${ARCHON_UID}:${ARCHON_GID}"
depends_on:
- gatekeeper
- keymaster
- ipfs
cli:
build:
context: .
dockerfile: Dockerfile.cli
image: ghcr.io/archetech/cli
environment:
- ARCHON_GATEKEEPER_URL=http://gatekeeper:4224
- ARCHON_KEYMASTER_URL=http://keymaster:4226
- ARCHON_IPFS_URL=http://ipfs:5001/api/v0
volumes:
- ./share:/app/share
user: "${ARCHON_UID}:${ARCHON_GID}"
depends_on:
- gatekeeper
- keymaster
- ipfs
explorer:
build:
context: .
dockerfile: Dockerfile.explorer
image: ghcr.io/archetech/explorer
environment:
- VITE_EXPLORER_PORT=4000
- VITE_GATEKEEPER_URL=http://localhost:4224
- VITE_SEARCH_SERVER=http://localhost:4224
- VITE_OPERATION_NETWORKS=hyperswarm,local,BTC:signet,BTC:testnet4
ports:
- "4000:4000"
depends_on:
- gatekeeper
react-wallet:
build:
context: .
dockerfile: Dockerfile.react-wallet
image: ghcr.io/archetech/react-wallet
environment:
- VITE_PORT=${ARCHON_REACT_WALLET_PORT:-4228}
- VITE_GATEKEEPER_URL=http://gatekeeper:4224
- VITE_KEYMASTER_URL=http://keymaster:4226
- VITE_SEARCH_SERVER=http://gatekeeper:4224
user: "${ARCHON_UID}:${ARCHON_GID}"
ports:
- "${ARCHON_REACT_WALLET_PORT:-4228}:${ARCHON_REACT_WALLET_PORT:-4228}"
depends_on:
- gatekeeper
# Observability Stack
prometheus:
image: prom/prometheus:v2.51.0
user: "${ARCHON_UID}:${ARCHON_GID}"
volumes:
- ./observability/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./data/prometheus:/prometheus
ports:
- "127.0.0.1:9090:9090"
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=15d'
depends_on:
- gatekeeper
- keymaster
grafana:
image: grafana/grafana:10.4.0
user: "${ARCHON_UID}:${ARCHON_GID}"
volumes:
- ./observability/grafana/provisioning:/etc/grafana/provisioning
- ./data/grafana:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_ADMIN_USER:-admin}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWORD:-admin}
- GF_USERS_ALLOW_SIGN_UP=false
ports:
- "127.0.0.1:3000:3000"
depends_on:
- prometheus