47 lines
1.6 KiB
YAML
47 lines
1.6 KiB
YAML
|
|
# Palladium Lightning — docker-compose
|
||
|
|
#
|
||
|
|
# Joins the existing `palladium-net` network created by the palladiumd compose stack.
|
||
|
|
# The palladium-node:local image must be built before this one (palladium-cli is copied from it).
|
||
|
|
#
|
||
|
|
# Usage:
|
||
|
|
# # 1. Create .env with RPC credentials (see .env.example)
|
||
|
|
# # 2. Ensure palladiumd is running on palladium-net
|
||
|
|
# docker compose -f docker-compose.lightning.yml build
|
||
|
|
# docker compose -f docker-compose.lightning.yml up -d
|
||
|
|
#
|
||
|
|
# # Check status
|
||
|
|
# docker logs palladium-lightning
|
||
|
|
# docker exec palladium-lightning lightning-cli --network=palladium getinfo
|
||
|
|
|
||
|
|
networks:
|
||
|
|
palladium-net:
|
||
|
|
external: true # created by the palladiumd compose stack
|
||
|
|
|
||
|
|
services:
|
||
|
|
palladium-lightning:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
dockerfile: Dockerfile.palladium-lightning
|
||
|
|
image: palladium-lightning:local
|
||
|
|
container_name: palladium-lightning
|
||
|
|
restart: unless-stopped
|
||
|
|
networks:
|
||
|
|
- palladium-net
|
||
|
|
ports:
|
||
|
|
- "0.0.0.0:9735:9735" # Lightning P2P — must be reachable from the internet
|
||
|
|
# RPC (9835) is NOT exposed on the host.
|
||
|
|
# Use: docker exec palladium-lightning lightning-cli --network=palladium <command>
|
||
|
|
volumes:
|
||
|
|
- ./.lightning:/root/.lightning
|
||
|
|
environment:
|
||
|
|
LIGHTNINGD_NETWORK: palladium
|
||
|
|
EXPOSE_TCP: "false"
|
||
|
|
command: >
|
||
|
|
--network=palladium
|
||
|
|
--palladium-rpcconnect=palladiumd
|
||
|
|
--palladium-rpcport=2332
|
||
|
|
--palladium-rpcuser=${PALLADIUM_RPCUSER}
|
||
|
|
--palladium-rpcpassword=${PALLADIUM_RPCPASSWORD}
|
||
|
|
--palladium-cli=/usr/local/bin/palladium-cli
|
||
|
|
--log-level=info
|