2022-10-18 05:06:16 +00:00
|
|
|
version: "3.7"
|
2022-05-30 10:35:52 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
app_proxy:
|
|
|
|
environment:
|
2022-12-04 20:18:22 +00:00
|
|
|
APP_HOST: elements_web_1
|
2022-05-30 10:35:52 +00:00
|
|
|
APP_PORT: 8080
|
|
|
|
|
|
|
|
node:
|
|
|
|
image: ghcr.io/vulpemventures/elements:0.21.0.2@sha256:60f082b13b366743ef3cd113cb20397b586fd7032c0eb9c0a2a242ebc528f537
|
|
|
|
restart: on-failure
|
|
|
|
stop_grace_period: 1m
|
|
|
|
ports:
|
|
|
|
- $APP_ELEMENTS_NODE_RPC_PORT:$APP_ELEMENTS_NODE_RPC_PORT # JSONRPC
|
|
|
|
- $APP_ELEMENTS_NODE_P2P_PORT:$APP_ELEMENTS_NODE_P2P_PORT # P2P PORT
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/data:/home/elements/.elements
|
|
|
|
command:
|
|
|
|
- -listen=1
|
|
|
|
- -txindex=1
|
|
|
|
# Current Elements Core requires >8GB of RAM to verify confidential proofs during IBD
|
|
|
|
# We skip historical block verification for now, as we don't have a way to set the memory limit
|
|
|
|
- -assumevalid=d4046e2c27e32e8582af39e402528e5df6ede1e1dd3c551764699e02e50bbf1e
|
|
|
|
- -validatepegin=1
|
|
|
|
- -fallbackfee=0.000001
|
|
|
|
# Attach to Bitcoin network
|
|
|
|
- -mainchainrpchost=$APP_BITCOIN_NODE_IP
|
|
|
|
- -mainchainrpcport=$APP_BITCOIN_RPC_PORT
|
|
|
|
- -mainchainrpcuser=$APP_BITCOIN_RPC_USER
|
|
|
|
- -mainchainrpcpassword=$APP_BITCOIN_RPC_PASS
|
|
|
|
# Elements RPC
|
|
|
|
- -rpcuser=elements
|
|
|
|
- -rpcpassword=$APP_PASSWORD
|
|
|
|
- -rpcbind=0.0.0.0 # can we do better here?
|
|
|
|
- -rpcallowip=0.0.0.0/0 # can we do better here?
|
|
|
|
- -rpcport=$APP_ELEMENTS_NODE_RPC_PORT
|
|
|
|
# P2P
|
|
|
|
- -port=$APP_ELEMENTS_NODE_P2P_PORT
|
|
|
|
- -blockfilterindex=1
|
|
|
|
- -peerblockfilters=1
|
|
|
|
|
|
|
|
web:
|
|
|
|
image: ghcr.io/tiero/elements-web:v0.0.3@sha256:b80dc0df2a4693668a97b874aad6d0a8d3239d03f4d05b4342600166934d0b87
|
|
|
|
depends_on:
|
|
|
|
- node
|
|
|
|
restart: on-failure
|
|
|
|
environment:
|
|
|
|
RPC_USER: elements
|
|
|
|
RPC_PASS: $APP_PASSWORD
|
|
|
|
RPC_PORT: $APP_ELEMENTS_NODE_RPC_PORT
|
2022-12-04 20:18:22 +00:00
|
|
|
RPC_HOST: elements_node_1
|
2022-05-30 10:35:52 +00:00
|
|
|
P2P_PORT: $APP_ELEMENTS_NODE_P2P_PORT
|
|
|
|
# Remote
|
|
|
|
REMOTE_RPC_HOST: $APP_ELEMENTS_RPC_HIDDEN_SERVICE
|
|
|
|
REMOTE_P2P_HOST: $APP_ELEMENTS_P2P_HIDDEN_SERVICE
|
|
|
|
|
2022-10-25 14:23:21 +00:00
|
|
|
tor:
|
|
|
|
image: getumbrel/tor:0.4.7.8@sha256:2ace83f22501f58857fa9b403009f595137fa2e7986c4fda79d82a8119072b6a
|
|
|
|
user: "1000:1000"
|
|
|
|
restart: on-failure
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/torrc:/etc/tor/torrc:ro
|
|
|
|
- ${TOR_DATA_DIR}:/data
|
|
|
|
environment:
|
|
|
|
HOME: "/tmp"
|