forked from algorand/sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (58 loc) · 1.89 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
61
version: '3'
services:
algod:
container_name: "${ALGOD_CONTAINER:-algorand-sandbox-algod}"
build:
context: .
dockerfile: ./images/algod/Dockerfile
args:
CHANNEL: "${ALGOD_CHANNEL}"
URL: "${ALGOD_URL}"
BRANCH: "${ALGOD_BRANCH}"
SHA: "${ALGOD_SHA}"
BOOTSTRAP_URL: "${NETWORK_BOOTSTRAP_URL}"
GENESIS_FILE: "${NETWORK_GENESIS_FILE}"
TEMPLATE: "${NETWORK_TEMPLATE:-images/algod/template.json}"
NETWORK_NUM_ROUNDS: "${NETWORK_NUM_ROUNDS:-30000}"
NODE_ARCHIVAL: "${NODE_ARCHIVAL}"
TOKEN: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
ALGOD_PORT: "4001"
KMD_PORT: "4002"
CDT_PORT: "9392"
ports:
- ${ALGOD_PORT:-4001}:4001
- ${KMD_PORT:-4002}:4002
- ${CDT_PORT:-9392}:9392
indexer:
container_name: "${INDEXER_CONTAINER:-algorand-sandbox-indexer}"
build:
context: .
dockerfile: ./images/indexer/Dockerfile
args:
URL: "${INDEXER_URL}"
BRANCH: "${INDEXER_BRANCH}"
SHA: "${INDEXER_SHA}"
ports:
- ${INDEXER_PORT:-8980}:8980
restart: unless-stopped
environment:
DISABLED: "${INDEXER_DISABLED}"
PORT: "8980"
SNAPSHOT: ""
CONNECTION_STRING: "host=indexer-db port=5432 user=algorand password=algorand dbname=indexer_db sslmode=disable"
ALGOD_ADDR: "algod:4001"
ALGOD_TOKEN: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
INDEXER_ENABLE_ALL_PARAMETERS: "${INDEXER_ENABLE_ALL_PARAMETERS:-false}"
depends_on:
- indexer-db
- algod
indexer-db:
image: "postgres:13-alpine"
container_name: "${POSTGRES_CONTAINER:-algorand-sandbox-postgres}"
ports:
- ${POSTGRES_PORT:-5433}:5432
user: postgres
environment:
POSTGRES_USER: algorand
POSTGRES_PASSWORD: algorand
POSTGRES_DB: indexer_db