forked from algorand/algorand-sdk-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
150 lines (140 loc) · 4.36 KB
/
docker-compose.yml
File metadata and controls
150 lines (140 loc) · 4.36 KB
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
version: '3'
services:
algod:
image: "sdk-harness-algod"
container_name: sdk-harness-algod
build:
context: .
dockerfile: "./docker/algod/${TYPE:-channel}/Dockerfile"
args:
# This is used with TYPE="channel" to override the channel.
CHANNEL: "${CHANNEL:-nightly}"
# This is used with TYPE="source" to override the git information.
URL: "${ALGOD_URL:-https://github.com/algorand/go-algorand}"
BRANCH: "${ALGOD_BRANCH:-master}"
ports:
- 60001:60001
- 60000:60000
networks:
- sdk-harness
volumes:
- genesis-file:/genesis-file
# Live indexer instance connected to algod
indexer-live:
image: "sdk-harness-indexer-live"
container_name: sdk-harness-indexer-live
build:
context: .
dockerfile: ./docker/indexer/Dockerfile
args:
URL: "https://github.com/algorand/indexer"
BRANCH: "develop"
ports:
- 60002:8980
restart: unless-stopped
networks:
- sdk-harness
environment:
TYPE: "live"
CONNECTION_STRING: "host=indexer-db port=5432 user=algorand password=harness dbname=live sslmode=disable"
volumes:
- genesis-file:/genesis-file
# Applications Branch using dataset1
indexer-221-1:
image: "sdk-harness-indexer-release"
container_name: sdk-harness-indexer-release
build:
context: .
dockerfile: ./docker/indexer/Dockerfile
args:
URL: "https://github.com/algorand/indexer"
BRANCH: "master"
SHA: "a30878e3669310c30a2b916fb41511516b906c9a"
ports:
- 59999:8980
restart: unless-stopped
networks:
- sdk-harness
environment:
TYPE: "snapshot"
SNAPSHOT_FILE: /tmp/dataset1.tar.bz2
CONNECTION_STRING: "host=indexer-db port=5432 user=algorand password=harness dbname=dataset1 sslmode=disable"
# Applications Branch using dataset2
indexer-221-2:
image: "sdk-harness-indexer-applications"
container_name: sdk-harness-indexer-applications
build:
context: .
dockerfile: ./docker/indexer/Dockerfile
args:
URL: "https://github.com/algorand/indexer"
BRANCH: "master"
SHA: "a30878e3669310c30a2b916fb41511516b906c9a"
ports:
- 59998:8980
restart: unless-stopped
networks:
- sdk-harness
environment:
TYPE: "snapshot"
SNAPSHOT_FILE: /tmp/dataset2.tar.bz2
CONNECTION_STRING: "host=indexer-db port=5432 user=algorand password=harness dbname=dataset2 sslmode=disable"
# Create/Delete/Rewards Branch using dataset1
indexer-23x-1:
image: "sdk-harness-indexer-23x-1"
container_name: sdk-harness-indexer-23x-1
build:
context: .
dockerfile: ./docker/indexer/Dockerfile
args:
URL: "https://github.com/algorand/indexer"
# TODO: Set back to master when include-all makes it to master.
BRANCH: "develop"
SHA: "cf93e3acacdf6fde9afd0b6b24fa0fde723ff43b"
ports:
- 59997:8980
restart: unless-stopped
networks:
- sdk-harness
environment:
TYPE: "snapshot"
SNAPSHOT_FILE: /tmp/dataset1.tar.bz2
CONNECTION_STRING: "host=indexer-db port=5432 user=algorand password=harness dbname=dataset1_2 sslmode=disable"
# Create/Delete/Rewards Branch using dataset2
indexer-23x-2:
image: "sdk-harness-indexer-23x-2"
container_name: sdk-harness-indexer-23x-2
build:
context: .
dockerfile: ./docker/indexer/Dockerfile
args:
URL: "https://github.com/algorand/indexer"
# TODO: Set back to master + SHA when include-all makes it to master.
BRANCH: "develop"
SHA: "cf93e3acacdf6fde9afd0b6b24fa0fde723ff43b"
ports:
- 59996:8980
restart: unless-stopped
networks:
- sdk-harness
environment:
TYPE: "snapshot"
SNAPSHOT_FILE: /tmp/dataset2.tar.bz2
CONNECTION_STRING: "host=indexer-db port=5432 user=algorand password=harness dbname=dataset2_2 sslmode=disable"
indexer-db:
image: "postgres"
container_name: sdk-harness-postgres
volumes:
- ./docker/indexer/init-scripts:/docker-entrypoint-initdb.d
ports:
- 5433:5432
networks:
- sdk-harness
environment:
POSTGRES_USER: algorand
POSTGRES_PASSWORD: harness
POSTGRES_MULTIPLE_DATABASES: live, dataset1, dataset2, dataset1_2, dataset2_2
networks:
sdk-harness:
volumes:
genesis-file: