-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (55 loc) · 1.28 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
version: "3.2"
services:
public-node:
container_name: public-node
image: ltonetwork/public-node:${LTO_NODE_VERSION:-latest}
volumes:
- lto-data:/lto
environment:
- LTO_NETWORK=${LTO_NETWORK:-MAINNET}
- ENABLE_REST_API=true
networks:
- lto
ports:
- ${PUBLIC_NODE_PORT:-}:6869
healthcheck:
test: ["CMD-SHELL", "curl -s -f -L -o /dev/null http://localhost:6869/node/status"]
interval: 30s
timeout: 10s
retries: 5
indexer:
container_name: indexer
image: ltonetwork/indexer:${LTO_INDEXER_VERSION:-latest}
volumes:
- lto-index:/usr/data/lto-index
- ./config:/etc/lto-index/
environment:
- NODE_ENV=production
- NODE_URL=http://public-node:6869
- STORAGE_TYPE=${STORAGE_TYPE:-leveldb}
- LEVELDB_NAME=/usr/data/lto-index
- REDIS_URL=${REDIS_URL:-redis://redis}
- IDENTITY_INDEXING=${DID_INDEXING:-true}
ports:
- ${PORT:-80}:80
networks:
- lto
depends_on:
public-node:
condition: service_healthy
redis:
container_name: redis
image: redis
volumes:
- lto-redis:/data
networks:
- lto
profiles:
- redis
volumes:
lto-data:
lto-index:
lto-redis:
networks:
lto:
driver: bridge