-
Notifications
You must be signed in to change notification settings - Fork 158
/
docker-compose.yml
82 lines (78 loc) · 2.51 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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"
ALGOD_FOLLOWER_PORT: "3999"
ports:
- ${ALGOD_PORT:-4001}:4001
- ${KMD_PORT:-4002}:4002
- ${CDT_PORT:-9392}:9392
- ${ALGOD_FOLLOWER_PORT:-3999}:3999
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"
CONNECTION_STRING: "host=indexer-db port=5432 user=algorand password=algorand dbname=indexer_db sslmode=disable"
INDEXER_ENABLE_ALL_PARAMETERS: "${INDEXER_ENABLE_ALL_PARAMETERS:-false}"
depends_on:
- algod
- conduit
conduit:
container_name: "${CONDUIT_CONTAINER:-algorand-sandbox-conduit}"
build:
context: .
dockerfile: ./images/conduit/Dockerfile
args:
URL: "${CONDUIT_URL}"
BRANCH: "${CONDUIT_BRANCH}"
SHA: "${CONDUIT_SHA}"
ports:
- ${CONDUIT_PORT:-3998}:3998
restart: unless-stopped
environment:
DISABLED: "${CONDUIT_DISABLED}"
PORT: "3998"
CONNECTION_STRING: "host=indexer-db port=5432 user=algorand password=algorand dbname=indexer_db sslmode=disable"
ALGOD_ADDR: "algod:3999"
ALGOD_ADMIN_TOKEN: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
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