test/sub/node-setup/compose.yml
2024-12-01 17:09:31 +03:30

88 lines
2.7 KiB
YAML

services:
core:
image: harbor.kuknos.ir/foundation/core:v18.4.0
#command: gen-seed
#command: new-db
#command: new-hist node1
command: run
restart: always
ports:
- "127.0.0.1:11626:11626"
- "11625:11625"
- "1415:1415"
volumes:
- "./cfg/core/stellar-core.cfg:/run/secrets/stellar-core.cfg"
- "./_data/core:/data"
- "./_data/history:/var/kuknos/history/"
depends_on:
- db-core
secrets:
- source: core_cfg
target: /run/secrets/stellar-core.cfg
mode: 0400
db-core:
image: docker.arvancloud.ir/postgres:9.6
restart: always
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: core
volumes:
- "./_data/core-db:/var/lib/postgresql/data"
# history:
# image: docker.arvancloud.ir/nginx
# restart: always
# volumes:
# - "./_data/history/:/usr/share/nginx/html/history/"
# - "./nginx.conf:/etc/nginx/nginx.conf"
# ports:
# - "1180:80"
# depends_on:
# - core
#
#
# horizon:
# # image: harbor.kuknos.ir/foundation/horizon:v2.16.12
# # image: harbor.mellatbam.com/kuknos/horizon:v2.18.2
# image: docker.arvancloud.ir/stellar/stellar-horizon:2.18.1-284
# #command: /horizon db migrate up
# restart: always
# ports:
# - "1100:8000"
# - "1101:6000"
# #volumes:
# # - "./_data/var:/var/kuknos/history"
# environment:
# - DATABASE_URL=postgres://postgres:postgres@db-horizon:5432/horizon?sslmode=disable
# - STELLAR_CORE_DATABASE_URL=postgres://postgres:postgres@db-core:5432/core?sslmode=disable
# - STELLAR_CORE_URL=http://core:11626
# - INGEST=true
# - NETWORK_PASSPHRASE=Kuknos Foundation, Feb 2019
# #- ENABLE_ASSET_STATS=true
# - HISTORY_ARCHIVE_URLS=http://history/history/vs/
# - PER_HOUR_RATE_LIMIT=0
# - ADMIN_PORT=6000
# - ENABLE_CAPTIVE_CORE_INGESTION=0
# depends_on:
# - db-horizon
# - core
# - db-core
# - history
#
# db-horizon:
# image: docker.arvancloud.ir/postgres:9.6
# restart: always
# environment:
# POSTGRES_PASSWORD: postgres
# POSTGRES_DB: horizon
# ports:
# - "5432:5432"
# volumes:
# - "./_data/horizon-database:/var/lib/postgresql/data"
#
secrets:
core_cfg:
file: stellar-core.cfg