-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
65 lines (61 loc) · 1.62 KB
/
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
version: "3.8"
services:
### Dria HNSW Rust code ###
dria-hnsw:
#build: ./dria_hnsw
image: "firstbatch/dria-hnsw"
environment:
- PORT=8080
- ROCKSDB_PATH=/data/${CONTRACT}
- REDIS_URL=redis://default:redispw@redis:6379
- CONTRACT_ID=${CONTRACT}
volumes:
- ${HOME}/.dria/data:/data
ports:
- "8080:8080"
depends_on:
hollowdb-wait-for:
condition: service_completed_successfully
### HollowDBs API 'wait-for' script ###
hollowdb-wait-for:
# build: ./hollowdb_wait
image: "firstbatch/dria-hollowdb-wait-for"
environment:
- TARGET=hollowdb:3000
depends_on:
- hollowdb
### HollowDB API ###
hollowdb:
#build: ./hollowdb
image: "firstbatch/dria-hollowdb"
ports:
- "3000:3000"
expose:
- "3000" # used by HollowDB wait-for script
volumes:
- ${HOME}/.dria/data:/app/data
environment:
- PORT=3000
- CONTRACT_ID=${CONTRACT}
- ROCKSDB_PATH=/app/data/${CONTRACT}
- REDIS_URL=redis://default:redispw@redis:6379
- USE_BUNDLR=true # true if your contract uses Bundlr
- USE_HTX=true # true if your contract stores values as `hash.txid`
- BUNDLR_FBS=80 # batch size for downloading bundled values from Arweave
depends_on:
- redis
### Redis Container ###
redis:
image: "redis:alpine"
expose:
- "6379"
# prettier-ignore
command: [
'redis-server',
'--port', '6379',
'--maxmemory', '100mb',
'--maxmemory-policy', 'allkeys-lru',
'--appendonly', 'no',
'--dbfilename', '${CONTRACT}.rdb',
'--dir', '/tmp'
]