seednode-docker: Support all environment variables

This commit is contained in:
Alva Swanson 2023-10-03 22:51:58 +02:00
parent 2caf328949
commit 521a7ebb92
No known key found for this signature in database
GPG Key ID: 004760E77F753090
3 changed files with 60 additions and 1 deletions

View File

@ -6,4 +6,4 @@ RUN tar xvf /seednode.tar
FROM gcr.io/distroless/java11-debian11 FROM gcr.io/distroless/java11-debian11
COPY --from=build /seednode /seednode COPY --from=build /seednode /seednode
ENTRYPOINT ["java", "-classpath", "'{{ CLASS_PATH }}'", "'{{ MAIN_CLASS }}'"] ENTRYPOINT ["java", "-classpath", "'{{ CLASS_PATH }}'", "'{{ MAIN_CLASS }}'"]

View File

@ -0,0 +1,36 @@
# java memory and remote management options
JDK_JAVA_OPTIONS=-Xms4096M -Xmx4096M -XX:+ExitOnOutOfMemoryError
# use external tor (change to -1 for internal tor binary)
BISQ_EXTERNAL_TOR_PORT=9051
# bitcoin p2p settings
BITCOIN_P2P_HOST=127.0.0.1
BITCOIN_P2P_PORT=8333
# bitcoind rpc ports
BITCOIN_RPC_HOST=192.168.1.1
BITCOIN_RPC_PORT=8332
BITCOIN_RPC_BLOCKNOTIFY_HOST=127.0.0.1
BITCOIN_RPC_BLOCKNOTIFY_PORT=5120
BITCOIN_RPC_USER=bisq
BITCOIN_RPC_PASS=bisq
# bisq pathnames
BISQ_HOME=/bisq
BISQ_APP_NAME=bisq-seednode
BISQ_BASE_CURRENCY=btc_mainnet
BISQ_DAO_FULLNODE=true
# bisq node settings
BISQ_NODE_PORT=8000
BISQ_MAX_CONNECTIONS=20
BISQ_MAX_MEMORY=4000
# set to true for BSQ explorer
BISQ_DUMP_BLOCKCHAIN=false
# set to true for BSQ markets
BISQ_DUMP_STATISTICS=false

View File

@ -0,0 +1,23 @@
version: '3.7'
services:
bisq-seednode:
image: bisq/seednode:latest
command:
- --fullDaoNode=${BISQ_DAO_FULLNODE}
- --userDataDir=${BISQ_HOME}
- --appName=${BISQ_APP_NAME}
- --baseCurrencyNetwork=${BISQ_BASE_CURRENCY}
- --maxConnections=${BISQ_MAX_CONNECTIONS}
- --maxMemory=${BISQ_MAX_MEMORY}
- --nodePort=${BISQ_NODE_PORT}
- --btcNodes=${BITCOIN_P2P_HOST}:${BITCOIN_P2P_PORT}
- --rpcBlockNotificationHost=${BITCOIN_RPC_BLOCKNOTIFY_HOST}
- --rpcBlockNotificationPort=${BITCOIN_RPC_BLOCKNOTIFY_PORT}
- --rpcHost=${BITCOIN_RPC_HOST}
- --rpcPort=${BITCOIN_RPC_PORT}
- --rpcUser=${BITCOIN_RPC_USER}
- --rpcPassword=${BITCOIN_RPC_PASS}
- --dumpBlockchainData=${BISQ_DUMP_BLOCKCHAIN}
- --dumpStatistics=${BISQ_DUMP_STATISTICS}
- --torControlPort=${BISQ_EXTERNAL_TOR_PORT}