Hosting with Docker
Hosting with Docker
Another way to host Lightning aside from using the cli directly is to use Docker and Docker Compose. This allows you to use containers and run it more easily using container management software.
Setting up the container
In a compose.yml
file, add the following snippet:
lightning: image: ghcr.io/williamhorning/lightning:0.8.0-alpha.6 volumes: - ./config:/data restart: always
Note that you will need to make the config folder adjacent to the composefile
and place the lightning.toml
file inside. See configuration
Running lightning
Use docker compose up -d lightning
to run lightning