forked from algorand/sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (55 loc) · 1.58 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
version: '3'
services:
algod:
container_name: "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:-/tmp/images/algod/template.json}"
TOKEN: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
ALGOD_PORT: "4001"
KMD_PORT: "4002"
CDT_PORT: "9392"
ports:
- 4001:4001
- 4002:4002
- 9392:9392
indexer:
container_name: "algorand-sandbox-indexer"
build:
context: .
dockerfile: ./images/indexer/Dockerfile
args:
URL: "${INDEXER_URL}"
BRANCH: "${INDEXER_BRANCH}"
SHA: "${INDEXER_SHA}"
ports:
- 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"
depends_on:
- indexer-db
- algod
indexer-db:
image: "postgres:13-alpine"
container_name: "algorand-sandbox-postgres"
ports:
- 5433:5432
user: postgres
environment:
POSTGRES_USER: algorand
POSTGRES_PASSWORD: algorand
POSTGRES_DB: indexer_db