Created
September 4, 2018 16:41
-
-
Save gravcat/80565f5d274ad873aa3498cd407b9bcc to your computer and use it in GitHub Desktop.
capture potential relevant config stuff for stellar core
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.4' | |
services: | |
stellar-core-postgres: | |
image: postgres:9-alpine | |
container_name: stellar-postgres | |
ports: | |
- 5432:5432 | |
environment: | |
- POSTGRES_DB=stellar-core | |
deploy: | |
restart_policy: | |
condition: on-failure | |
delay: 10s | |
max_attempts: 60 | |
restart: always | |
stellar-core: | |
image: 'satoshipay/stellar-core:9.2.0-1' | |
container_name: stellar-core | |
depends_on: | |
- stellar-postgres | |
links: | |
- stellar-postgres | |
ports: | |
- 11625:11625 | |
- 11626:11626 | |
environment: | |
- DATABASE=postgresql://dbname=stellar-core user=postgres host=stellar-core-postgres | |
- NODE_IS_VALIDATOR=false | |
- "KNOWN_PEERS=\ | |
stellar0.keybase.io,\ | |
validator1.stellar.stronghold.co,\ | |
au.stellar.ibm.com,\ | |
ca.stellar.ibm.com,\ | |
hk.stellar.ibm.com,\ | |
in.stellar.ibm.com,\ | |
it.stellar.ibm.com,\ | |
uk.stellar.ibm.com,\ | |
us.stellar.ibm.com,\ | |
stellar1.tempo.eu.com,\ | |
stellar1.satoshipay.io,\ | |
stellar2.satoshipay.io,\ | |
stellar3.satoshipay.io" | |
- NETWORK_PASSPHRASE=Public Global Stellar Network ; September 2015 | |
- CATCHUP_RECENT=1024 | |
- "NODE_NAMES=\ | |
GCKWUQGSVO45ZV3QK7POYL7HMFWDKWJVMFVEGUJKCAEVUITUCTQWFSM6 ibm_au,\ | |
GB2HF2NHRKKFZYFDGD7MUENOYROOEK7SWYV2APYOODP6P7BUJTLILKIL ibm_ca,\ | |
GBJ7T3BTLX2BP3T5Q4256PUF7JMDAB35LLO32QRDYE67TDDMN7H33GGE ibm_hk,\ | |
GAEEH4TBR7YQQWKJ2FIT57HXZZTMK2BX5LY4POJUYFSEZ7Y2ONHPPTES ibm_it,\ | |
GCH3O5PTCZVR4G65W3B4XDKWI5V677HQB3QO7CW4YPVYDDFBE2GE7G6V ibm_in,\ | |
GAENPO2XRTTMAJXDWM3E3GAALNLG4HVMKJ4QF525TR25RI42YPEDULOW ibm_uk,\ | |
GARBCBH4YSHUJLYEPKEPMVYZIJ3ZSQR3QCJ245CWGY64X72JLN4A6RSG ibm_us,\ | |
GDIQKLQVOCD5UD6MUI5D5PTPVX7WTP5TAPP5OBMOLENBBD5KG434KYQ2 stronghold1,\ | |
GAOO3LWBC4XF6VWRP5ESJ6IBHAISVJMSBTALHOQM2EZG7Q477UWA6L7U eno,\ | |
GCJCSMSPIWKKPR7WEPIQG63PDF7JGGEENRC33OKVBSPUDIRL6ZZ5M7OO tempo.eu.com,\ | |
GC5SXLNAM3C4NMGK2PXK4R34B5GNZ47FYQ24ZIBFDFOCU6D4KBN4POAE satoshipay1,\ | |
GBJQUIXUO4XSNPAUT6ODLZUJRV2NPXYASKUBY4G5MYP3M47PCVI55MNT satoshipay2,\ | |
GAK6Z5UVGUVSEK6PEOCAYJISTT5EJBB34PN3NOLEQG2SUKXRVV2F6HZY satoshipay3" | |
- >- | |
QUORUM_SET=[ | |
{ | |
"threshold_percent": 67, | |
"validators": [ | |
"$$ibm_au", | |
"$$ibm_ca", | |
"$$ibm_in", | |
"$$ibm_it", | |
"$$ibm_hk", | |
"$$ibm_uk", | |
"$$ibm_us" | |
] | |
}, | |
{ | |
"path": "satoshipay", | |
"threshold_percent": 67, | |
"validators": [ | |
"$$satoshipay1", | |
"$$satoshipay2", | |
"$$satoshipay3" | |
] | |
} | |
] | |
- >- | |
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}" | |
} | |
} | |
healthcheck: | |
test: ["CMD", "stellar-core", "--conf", "/etc/stellar-core.cfg", "-c", "info"] | |
interval: 1m | |
timeout: 15s | |
retries: 4 | |
start_period: 15s | |
deploy: | |
restart_policy: | |
condition: on-failure | |
delay: 10s | |
max_attempts: 60 | |
restart: always | |
stellar-horizon-postgres: | |
image: postgres:9-alpine | |
environment: | |
- POSTGRES_DB=stellar-horizon | |
deploy: | |
restart_policy: | |
condition: on-failure | |
delay: 10s | |
max_attempts: 60 | |
stellar-horizon: | |
image: satoshipay/stellar-horizon:0.13.0-2 | |
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 | |
deploy: | |
restart_policy: | |
condition: on-failure | |
delay: 10s | |
max_attempts: 60 | |
restart: on-failure | |
cadvisor: | |
image: google/cadvisor:v0.28.3 | |
container_name: cadvisor | |
volumes: | |
- /:/rootfs:ro | |
- /var/run:/var/run:rw | |
- /sys:/sys:ro | |
- /var/lib/docker/:/var/lib/docker:ro | |
ports: | |
- 8080:8080 | |
restart: on-failure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment