Created
May 28, 2018 00:18
-
-
Save remitaffin/60c19bbd27bf5294762ad629784c9768 to your computer and use it in GitHub Desktop.
stellar-horizon-testnet 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.6 | |
volumes: | |
- "/var/lib/stellar/postgres-core:/var/lib/postgresql/data" | |
environment: | |
- POSTGRES_DB=stellar-core | |
stellar-core: | |
image: satoshipay/stellar-core | |
restart: on-failure | |
links: | |
- postgres-core | |
ports: | |
# peer port | |
- "11625:11625" | |
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> | |
- KNOWN_PEERS=core-testnet1.stellar.org,core-testnet2.stellar.org,core-testnet3.stellar.org | |
- NETWORK_PASSPHRASE=Test SDF Network ; September 2015 | |
- UNSAFE_QUORUM=true | |
- FAILURE_SAFETY=1 | |
- CATCHUP_RECENT=60480 | |
- >- | |
NODE_NAMES= | |
GDKXE2OZMJIPOSLNA6N6F2BVCI3O777I2OOC4BV7VOYUEHYX7RTRYA7Y sdf1, | |
GCUCJTIYXSOXKBSNFGNFWW5MUQ54HKRPGJUTQFJ5RQXZXNOLNXYDHRAP sdf2, | |
GC2V2EFSXN6SQTWVYA5EPJPBWWIMSD2XQNKUOHGEKB535AQE2I6IXV2Z sdf3 | |
- >- | |
QUORUM_SET=[ | |
{ | |
"threshold_percent": 51, | |
"validators":["$$sdf1","$$sdf2","$$sdf3"] | |
} | |
] | |
- >- | |
HISTORY={ | |
"h1": {"get": "curl -sf http://s3-eu-west-1.amazonaws.com/history.stellar.org/prd/core-testnet/core_testnet_001/{0} -o {1}"}, | |
"h2": {"get": "curl -sf http://s3-eu-west-1.amazonaws.com/history.stellar.org/prd/core-testnet/core_testnet_002/{0} -o {1}"}, | |
"h3": {"get": "curl -sf http://s3-eu-west-1.amazonaws.com/history.stellar.org/prd/core-testnet/core_testnet_003/{0} -o {1}"} | |
} | |
postgres-horizon: | |
image: postgres:9.6 | |
volumes: | |
- "/var/lib/stellar/postgres-horizon:/var/lib/postgresql/data" | |
environment: | |
- POSTGRES_DB=stellar-horizon | |
ports: | |
- 5432:5432 | |
stellar-horizon: | |
image: satoshipay/stellar-horizon | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment