Last active
July 31, 2019 12:32
-
-
Save remitaffin/13e1198d609d2df8b5afbb6d9e54b1d6 to your computer and use it in GitHub Desktop.
stellar-horizon-prodnet docker-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
postgres-core: | |
image: postgres:9 | |
volumes: | |
- "/var/lib/stellar/postgres-core:/var/lib/postgresql/data" | |
environment: | |
- POSTGRES_DB=stellar-core | |
stellar-core: | |
build: . | |
restart: on-failure | |
links: | |
- postgres-core | |
ports: | |
- 11625:11625 | |
- 11626:11626 | |
volumes: | |
- "/var/lib/stellar/core:/data" | |
environment: | |
- DATABASE=postgresql://dbname=stellar-core user=postgres host=postgres-core | |
- NODE_SEED=<replace_with_your_node_seed_here> <node_name> | |
- NETWORK_PASSPHRASE=Public Global Stellar Network ; September 2015 | |
- CATCHUP_RECENT=14400 | |
- HISTORY_RETENTION_COUNT=60480 | |
- NODE_IS_VALIDATOR=true | |
- MAX_PEER_CONNECTIONS=30 | |
- INITIALIZE_HISTORY_ARCHIVES=true | |
- "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" | |
- >- | |
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}"}, | |
"backup": { | |
"get": "curl https://historythewwallet.blob.core.windows.net/corelive001/{0} -o {1}", | |
"put": "az storage blob upload -f {0} -c corelive001 -n {1}" | |
} | |
} | |
postgres-horizon: | |
image: postgres:9 | |
volumes: | |
- "/var/lib/stellar/postgres-horizon:/var/lib/postgresql/data" | |
environment: | |
- POSTGRES_DB=stellar-horizon | |
ports: | |
- 5432:5432 | |
stellar-horizon: | |
image: satoshipay/stellar-horizon:0.18.0 | |
restart: on-failure | |
links: | |
- stellar-core | |
- postgres-horizon | |
- postgres-core | |
ports: | |
# HTTP port | |
- "8000:8000" | |
environment: | |
- DATABASE_URL=postgres://postgres@postgres-horizon/stellar-horizon?sslmode=disable | |
- STELLAR_CORE_DATABASE_URL=postgres://postgres@postgres-core/stellar-core?sslmode=disable | |
- STELLAR_CORE_URL=http://stellar-core:11626 | |
- INGEST=true | |
- NETWORK_PASSPHRASE=Public Global Stellar Network ; September 2015 | |
prometheus-exporter: | |
image: stellar/stellar-core-prometheus-exporter:latest | |
environment: | |
- STELLAR_CORE_ADDRESS=http://stellar-core:11626 | |
ports: | |
- "9473:9473" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment