-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
126 lines (116 loc) · 3.74 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
######### run with: docker-compose up --build #########
version: '3.3'
networks:
payment-channel:
services:
# dappflow sandbox expects the following:
# Algod url: http://localhost
# Algod port: 4001
# Algod token: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
# Indexer url: http://localhost
# Indexer port: 8980
# Indexer token: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
algorand-algod:
container_name: "algorand-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"
networks:
- payment-channel
ports:
- ${ALGOD_PORT:-4001}:4001
- ${KMD_PORT:-4002}:4002
- ${CDT_PORT:-9392}:9392
- ${ALGOD_FOLLOWER_PORT:-3999}:3999
algorand-indexer:
container_name: "algorand-indexer"
build:
context: .
dockerfile: ./images/indexer/Dockerfile
args:
URL: "${INDEXER_URL}"
BRANCH: "${INDEXER_BRANCH}"
SHA: "${INDEXER_SHA}"
networks:
- payment-channel
ports:
- ${INDEXER_PORT:-8980}:8980
restart: unless-stopped
environment:
DISABLED: "${INDEXER_DISABLED}"
PORT: "8980"
CONNECTION_STRING: "host=algorand-indexer-db port=5432 user=algorand password=algorand dbname=indexer_db sslmode=disable"
INDEXER_ENABLE_ALL_PARAMETERS: "${INDEXER_ENABLE_ALL_PARAMETERS:-false}"
depends_on:
- algorand-algod
- algorand-conduit
algorand-conduit:
container_name: "algorand-conduit"
build:
context: .
dockerfile: ./images/conduit/Dockerfile
args:
URL: "${CONDUIT_URL}"
BRANCH: "${CONDUIT_BRANCH}"
SHA: "${CONDUIT_SHA}"
networks:
- payment-channel
ports:
- ${CONDUIT_PORT:-3998}:3998
restart: unless-stopped
environment:
DISABLED: "${CONDUIT_DISABLED}"
PORT: "3998"
CONNECTION_STRING: "host=algorand-indexer-db port=5432 user=algorand password=algorand dbname=indexer_db sslmode=disable"
ALGOD_ADDR: "algorand-algod:3999"
ALGOD_ADMIN_TOKEN: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
depends_on:
- algorand-indexer-db
- algorand-algod
algorand-indexer-db:
container_name: "algorand-indexer-db"
image: "postgres:13-alpine"
networks:
- payment-channel
ports:
- ${POSTGRES_PORT:-5433}:5432
user: postgres
environment:
POSTGRES_USER: algorand
POSTGRES_PASSWORD: algorand
POSTGRES_DB: indexer_db
asc-alice:
container_name: "asc-alice"
build:
context: .
networks:
- payment-channel
expose:
- "28547"
# environment:
# SEED_PHRASE: "auction palm thumb shuffle aim fade cover glass fire spawn course harbor moon decline shed shop envelope virtual visa attitude hand december portion abstract labor"
asc-bob:
container_name: "asc-bob"
build:
context: .
networks:
- payment-channel
expose:
- "28547"
# environment:
# SEED_PHRASE: "prize struggle destroy tray harvest wear century length thought diagram rubber page bridge weasel same ocean team index skin volume witness record cinnamon able machine"