-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.example.yml
132 lines (129 loc) · 4.8 KB
/
docker-compose.example.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
127
128
129
130
131
132
# example docker compose file for how to run stellar core
version: '3'
services:
stellar-core-postgres:
image: postgres:9
restart: on-failure
environment:
- POSTGRES_DB=stellar-core
stellar-core:
image: satoshipay/stellar-core:10.2.0
restart: always
ports:
- 11625:11625
- 11626:11626
environment:
- DATABASE=postgresql://dbname=stellar-core user=postgres password=DATABASE_PASSWORD host=stellar-core-postgres
- DATABASE_PASSWORD=2aq853RGDqdHAWFwGDSGGRIUP9VzJJsh
# WARNING: make sure to use a new NODE_SEED!
# public key GD4E3XVLEBB4JMR7KNNMTSGXIKOK56ZZXX764KEPKE4IR73DEG6O22SI
- NODE_SEED=SCBQ3PUIFODWT3IH2H36IB7ZWT2FKNZQTS6ZZ3QIXS63IFIXZEGRTBUM my_stellar_node
- NODE_IS_VALIDATOR=true
- NETWORK_PASSPHRASE=Public Global Stellar Network ; September 2015
- CATCHUP_RECENT=60480
- MAX_PEER_CONNECTIONS=30
- "KNOWN_PEERS=\
au.stellar.ibm.com,\
br.stellar.ibm.com,\
ca.stellar.ibm.com,\
no.stellar.ibm.com,\
it.stellar.ibm.com,\
hk.stellar.ibm.com,\
in.stellar.ibm.com,\
uk.stellar.ibm.com,\
us.stellar.ibm.com,\
stellar1.satoshipay.io,\
stellar2.satoshipay.io,\
stellar3.satoshipay.io,\
core-live-a.stellar.org,\
core-live-b.stellar.org,\
core-live-c.stellar.org"
- "PREFERRED_PEERS=\
au.stellar.ibm.com,\
br.stellar.ibm.com,\
ca.stellar.ibm.com,\
no.stellar.ibm.com,\
it.stellar.ibm.com,\
hk.stellar.ibm.com,\
in.stellar.ibm.com,\
uk.stellar.ibm.com,\
us.stellar.ibm.com,\
stellar1.satoshipay.io,\
stellar2.satoshipay.io,\
stellar3.satoshipay.io,\
core-live-a.stellar.org,\
core-live-b.stellar.org,\
core-live-c.stellar.org"
- "NODE_NAMES=\
GCKWUQGSVO45ZV3QK7POYL7HMFWDKWJVMFVEGUJKCAEVUITUCTQWFSM6 ibm_au,\
GBUJA3Z5TLAKLI5MEH4TETLXJBQVSVW74MNEKP5UUHTP3IMLNSUPOTVA ibm_br,\
GB2HF2NHRKKFZYFDGD7MUENOYROOEK7SWYV2APYOODP6P7BUJTLILKIL ibm_ca,\
GDRA72H7JWXAXWJKOONQOPH3JKNSH5MQ6BO5K74C3X6FO2G3OG464BPU ibm_no,\
GAEEH4TBR7YQQWKJ2FIT57HXZZTMK2BX5LY4POJUYFSEZ7Y2ONHPPTES ibm_it,\
GBJ7T3BTLX2BP3T5Q4256PUF7JMDAB35LLO32QRDYE67TDDMN7H33GGE ibm_hk,\
GCH3O5PTCZVR4G65W3B4XDKWI5V677HQB3QO7CW4YPVYDDFBE2GE7G6V ibm_in,\
GAENPO2XRTTMAJXDWM3E3GAALNLG4HVMKJ4QF525TR25RI42YPEDULOW ibm_uk,\
GARBCBH4YSHUJLYEPKEPMVYZIJ3ZSQR3QCJ245CWGY64X72JLN4A6RSG ibm_us,\
GC5SXLNAM3C4NMGK2PXK4R34B5GNZ47FYQ24ZIBFDFOCU6D4KBN4POAE satoshipay1,\
GBJQUIXUO4XSNPAUT6ODLZUJRV2NPXYASKUBY4G5MYP3M47PCVI55MNT satoshipay2,\
GAK6Z5UVGUVSEK6PEOCAYJISTT5EJBB34PN3NOLEQG2SUKXRVV2F6HZY satoshipay3,\
GCGB2S2KGYARPVIA37HYZXVRM2YZUEXA6S33ZU5BUDC6THSB62LZSTYH sdf_watcher1,\
GCM6QMP3DLRPTAZW2UZPCPX2LF3SXWXKPMP3GKFZBDSF3QZGV2G5QSTK sdf_watcher2,\
GABMKJM6I25XI4K7U6XWMULOUQIQ27BCTMLS6BYYSOWKTBUXVRJSXHYQ sdf_watcher3"
# this is just an example quorum set – you most likely want to change it
- >-
QUORUM_SET=[
{
"threshold_percent": 66,
"validators": [
"$$satoshipay1",
"$$satoshipay2",
"$$satoshipay3"
]
},
{
"path": "ibm",
"threshold_percent": 51,
"validators": [
"$$ibm_au",
"$$ibm_br",
"$$ibm_ca",
"$$ibm_no",
"$$ibm_it",
"$$ibm_hk",
"$$ibm_in",
"$$ibm_uk",
"$$ibm_us"
]
},
{
"path": "sdf",
"threshold_percent": 51,
"validators": [
"$$sdf_watcher1",
"$$sdf_watcher2",
"$$sdf_watcher3"
]
}
]
- >-
HISTORY={
"sdf1": {"get": "curl -sf http://history.stellar.org/prd/core-live/core_live_001/{0} -o {1}"},
"sdf2": {"get": "curl -sf http://history.stellar.org/prd/core-live/core_live_002/{0} -o {1}"},
"sdf3": {"get": "curl -sf http://history.stellar.org/prd/core-live/core_live_003/{0} -o {1}"}
}
stellar-horizon-postgres:
image: postgres:9
restart: on-failure
environment:
- POSTGRES_DB=stellar-horizon
stellar-horizon:
image: satoshipay/stellar-horizon:0.17.2
restart: on-failure
ports:
- 8000:8000
environment:
- DATABASE_URL=postgres://postgres@stellar-horizon-postgres/stellar-horizon?sslmode=disable
- STELLAR_CORE_DATABASE_URL=postgres://postgres@stellar-core-postgres/stellar-core?sslmode=disable
- STELLAR_CORE_URL=http://stellar-core:11626
- INGEST=true