version: "3.7" services: app_proxy: environment: APP_HOST: $APP_CORE_LIGHTNING_IP APP_PORT: $APP_CORE_LIGHTNING_PORT app: image: ghcr.io/elementsproject/cln-application:0.0.3@sha256:05595731a98a17aff6603b9ad35aaa17825bf1e51dd22da409c37f9fce5d2b2e command: npm run start restart: on-failure volumes: - ${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} environment: 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} LOCAL_HOST: http://${DEVICE_DOMAIN_NAME} 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 networks: default: ipv4_address: ${APP_CORE_LIGHTNING_IP} c-lightning-rest: image: saubyk/c-lightning-rest:0.9.0@sha256:00b40443f1f455378587abb37649fdb7c7b1efb43ed64bc9fe78d9bf6ffb4371 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: image: lncm/clightning:v22.11.1@sha256:e9939341ca6736566e0499db5a339b25140d6e77fb16ab202c217112f0df9b77 restart: on-failure ports: - ${APP_CORE_LIGHTNING_DAEMON_PORT}:9735 - ${APP_CORE_LIGHTNING_WEBSOCKET_PORT}:${APP_CORE_LIGHTNING_WEBSOCKET_PORT} 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} - --network=${APP_CORE_LIGHTNING_BITCOIN_NETWORK} - --database-upgrade=true - --experimental-websocket-port=${APP_CORE_LIGHTNING_WEBSOCKET_PORT} - --experimental-offers #- --grpc-port=${APP_CORE_LIGHTNING_DAEMON_GRPC_PORT} volumes: - "${APP_DATA_DIR}/data/lightningd:/data/.lightning" networks: default: 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: HOME: "/tmp"