-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
61 lines (61 loc) · 1.52 KB
/
docker-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
version: "3.8"
services:
database:
image: cockroachdb/cockroach:latest
container_name: cdb-idx-${NETWORK}
restart: always
ports:
- "${DB_SQL_BIND}:26257"
- "${DB_UI_BIND}:8080"
command: start-single-node --insecure --cache=${DB_CACHE}
volumes:
- type: bind
source: ${DB_VOL}
target: /cockroach/cockroach-data
logging:
driver: local
options:
max-size: "20m"
max-file: "2"
compress: "false"
conduit:
container_name: idx-${NETWORK}-cdb
image: urtho/conduit-cdb:latest
restart: always
volumes:
- type: bind
source: ./data-conduit
target: /data
depends_on:
- database
entrypoint:
- "/app/conduit"
- "-d"
- "/data"
logging:
driver: local
options:
max-size: "20m"
max-file: "2"
compress: "false"
api:
container_name: idx-api-${NETWORK}
image: urtho/algo-indexer-api-cdb:latest
ports:
- "${IDX_API_BIND}:8980"
restart: always
depends_on:
- database
environment:
- 'INDEXER_POSTGRES_CONNECTION_STRING=host=cdb-idx-${NETWORK} port=26257 user=root dbname=ledgerdb sslmode=disable'
- 'INDEXER_API_TOKEN=${IDX_API_TOKEN}'
- 'INDEXER_MAX_CONN=60'
- 'INDEXER_SERVER_ADDRESS=:8980'
entrypoint:
- "/app/algorand-indexer"
- "daemon"
- "--enable-all-parameters"
- "--max-api-resources-per-account"
- "100000"
- "--max-transactions-limit"
- "1000000"