2022-10-18 05:06:16 +00:00
|
|
|
version: "3.7"
|
2022-06-07 11:10:58 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
app_proxy:
|
|
|
|
environment:
|
|
|
|
APP_HOST: $APP_CORE_LIGHTNING_IP
|
|
|
|
APP_PORT: $APP_CORE_LIGHTNING_PORT
|
|
|
|
|
|
|
|
app:
|
2023-05-22 19:31:07 +00:00
|
|
|
image: ghcr.io/elementsproject/cln-application:0.0.3@sha256:05595731a98a17aff6603b9ad35aaa17825bf1e51dd22da409c37f9fce5d2b2e
|
2023-05-18 18:58:17 +00:00
|
|
|
command: npm run start
|
2022-06-07 11:10:58 +00:00
|
|
|
restart: on-failure
|
|
|
|
volumes:
|
2023-05-18 18:58:17 +00:00
|
|
|
- ${APP_DATA_DIR}/data/app:${APP_CONFIG_DIR}
|
|
|
|
- ${APP_DATA_DIR}/data/lightningd:${APP_CORE_LIGHTNING_DATA_DIR}
|
|
|
|
- ${APP_CORE_LIGHTNING_REST_CERT_DIR}:${APP_REST_CERT_VOLUME_DIR}
|
2022-06-07 11:10:58 +00:00
|
|
|
environment:
|
2023-05-18 18:58:17 +00:00
|
|
|
APP_CORE_LIGHTNING_IP: ${APP_CORE_LIGHTNING_IP}
|
|
|
|
APP_CORE_LIGHTNING_PORT: ${APP_CORE_LIGHTNING_PORT}
|
|
|
|
APP_CORE_LIGHTNING_BITCOIN_NETWORK: ${APP_CORE_LIGHTNING_BITCOIN_NETWORK}
|
|
|
|
APP_CORE_LIGHTNING_DAEMON_IP: ${APP_CORE_LIGHTNING_DAEMON_IP}
|
|
|
|
APP_CORE_LIGHTNING_DAEMON_GRPC_PORT: ${APP_CORE_LIGHTNING_DAEMON_GRPC_PORT}
|
|
|
|
APP_CORE_LIGHTNING_WEBSOCKET_PORT: ${APP_CORE_LIGHTNING_WEBSOCKET_PORT}
|
|
|
|
APP_CORE_LIGHTNING_REST_PORT: ${APP_CORE_LIGHTNING_REST_PORT}
|
|
|
|
APP_CORE_LIGHTNING_REST_CERT_DIR: ${APP_REST_CERT_VOLUME_DIR}
|
|
|
|
APP_CORE_LIGHTNING_REST_HIDDEN_SERVICE: http://${APP_CORE_LIGHTNING_REST_HIDDEN_SERVICE}
|
|
|
|
CORE_LIGHTNING_PATH: ${CORE_LIGHTNING_PATH}
|
|
|
|
COMMANDO_CONFIG: ${COMMANDO_CONFIG}
|
|
|
|
APP_CONFIG_DIR: ${APP_CONFIG_DIR}
|
|
|
|
APP_MODE: ${APP_MODE}
|
|
|
|
DEVICE_DOMAIN_NAME: ${DEVICE_DOMAIN_NAME}
|
2022-06-07 11:10:58 +00:00
|
|
|
LOCAL_HOST: http://${DEVICE_DOMAIN_NAME}
|
2023-05-18 18:58:17 +00:00
|
|
|
CA_CERT: ${APP_CORE_LIGHTNING_DATA_DIR}/bitcoin/ca.pem
|
|
|
|
CLIENT_KEY: ${APP_CORE_LIGHTNING_DATA_DIR}/bitcoin/client-key.pem
|
|
|
|
CLIENT_CERT: ${APP_CORE_LIGHTNING_DATA_DIR}/bitcoin/client.pem
|
2022-06-07 11:10:58 +00:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
ipv4_address: ${APP_CORE_LIGHTNING_IP}
|
|
|
|
|
|
|
|
c-lightning-rest:
|
2022-10-04 11:45:03 +00:00
|
|
|
image: saubyk/c-lightning-rest:0.9.0@sha256:00b40443f1f455378587abb37649fdb7c7b1efb43ed64bc9fe78d9bf6ffb4371
|
2022-06-07 11:10:58 +00:00
|
|
|
restart: on-failure
|
|
|
|
ports:
|
|
|
|
- ${APP_CORE_LIGHTNING_REST_PORT}:${APP_CORE_LIGHTNING_REST_PORT}
|
|
|
|
environment:
|
|
|
|
PORT: "${APP_CORE_LIGHTNING_REST_PORT}"
|
|
|
|
PROTOCOL: "http"
|
|
|
|
volumes:
|
|
|
|
- "${APP_CORE_LIGHTNING_REST_CERT_DIR}:/usr/src/app/certs"
|
|
|
|
- "${APP_DATA_DIR}/data/lightningd:/root/.lightning"
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
ipv4_address: ${APP_CORE_LIGHTNING_REST_IP}
|
|
|
|
|
|
|
|
lightningd:
|
2023-01-05 14:25:29 +00:00
|
|
|
image: lncm/clightning:v22.11.1@sha256:e9939341ca6736566e0499db5a339b25140d6e77fb16ab202c217112f0df9b77
|
2022-06-07 11:10:58 +00:00
|
|
|
restart: on-failure
|
|
|
|
ports:
|
|
|
|
- ${APP_CORE_LIGHTNING_DAEMON_PORT}:9735
|
2023-05-18 18:58:17 +00:00
|
|
|
- ${APP_CORE_LIGHTNING_WEBSOCKET_PORT}:${APP_CORE_LIGHTNING_WEBSOCKET_PORT}
|
2022-06-07 11:10:58 +00:00
|
|
|
command:
|
|
|
|
- --bitcoin-rpcconnect=${APP_BITCOIN_NODE_IP}
|
|
|
|
- --bitcoin-rpcuser=${APP_BITCOIN_RPC_USER}
|
|
|
|
- --bitcoin-rpcpassword=${APP_BITCOIN_RPC_PASS}
|
|
|
|
- --proxy=${TOR_PROXY_IP}:${TOR_PROXY_PORT}
|
|
|
|
- --bind-addr=${APP_CORE_LIGHTNING_DAEMON_IP}:9735
|
|
|
|
- --addr=statictor:${TOR_PROXY_IP}:29051
|
|
|
|
- --tor-service-password=${TOR_PASSWORD}
|
2022-11-03 15:27:31 +00:00
|
|
|
- --network=${APP_CORE_LIGHTNING_BITCOIN_NETWORK}
|
2023-01-05 14:25:29 +00:00
|
|
|
- --database-upgrade=true
|
2023-05-18 18:58:17 +00:00
|
|
|
- --experimental-websocket-port=${APP_CORE_LIGHTNING_WEBSOCKET_PORT}
|
|
|
|
- --experimental-offers
|
2022-06-07 17:18:40 +00:00
|
|
|
#- --grpc-port=${APP_CORE_LIGHTNING_DAEMON_GRPC_PORT}
|
2022-06-07 11:10:58 +00:00
|
|
|
volumes:
|
2022-06-07 17:18:40 +00:00
|
|
|
- "${APP_DATA_DIR}/data/lightningd:/data/.lightning"
|
2022-06-07 11:10:58 +00:00
|
|
|
networks:
|
|
|
|
default:
|
2022-10-25 14:23:21 +00:00
|
|
|
ipv4_address: ${APP_CORE_LIGHTNING_DAEMON_IP}
|
|
|
|
|
|
|
|
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:
|
2022-11-03 15:27:31 +00:00
|
|
|
HOME: "/tmp"
|