Skip to content

Commit

Permalink
Use normal user to run bitcoin and cln (#191)
Browse files Browse the repository at this point in the history
It solves the problem that files created in volumes have root user and
make it hard to remove on Linux machines.
  • Loading branch information
andrei-21 authored Oct 18, 2024
1 parent f041fae commit 86490fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/nigiri/resources/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ services:
bitcoin:
image: lncm/bitcoind:v24.0.1
container_name: bitcoin
# wildcard user 0:0 to avoid permission problems
user: 0:0
user: 1000:1000
restart: on-failure
stop_grace_period: 30s
ports:
Expand All @@ -16,7 +15,7 @@ services:
- 28332:28332
- 28333:28333
volumes:
- ./volumes/bitcoin:/root/.bitcoin
- ./volumes/bitcoin:/data/.bitcoin

liquid:
image: ghcr.io/vulpemventures/elements:latest
Expand Down Expand Up @@ -209,6 +208,7 @@ services:
cln:
container_name: cln
image: elementsproject/lightningd:latest
user: 1000:1000
environment:
EXPOSE_TCP: "true"
command:
Expand All @@ -226,7 +226,7 @@ services:
- 9835:9835 # rpc
restart: unless-stopped
volumes:
- ./volumes/lightningd:/root/.lightning
- ./volumes/lightningd:/.lightning
- ./volumes/bitcoin:/etc/bitcoin

networks:
Expand Down

0 comments on commit 86490fd

Please sign in to comment.