Skip to content

Commit

Permalink
chore(ln): add healthcheck for cln container in docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Oct 2, 2023
1 parent 3fc2f08 commit 2637381
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions docker/regtest/lightning-regtest-setup-devel/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ services:
- ./data/cln0_app/regtest/server-key.pem:/home/clightning/.lightning/regtest/server-key.pem
ports:
- "19935:19935"
#healthcheck:
# test: [ "CMD", "/entrypoint.sh", "lightning-cli", "--network=regtest", "getinfo" ]
# interval: 10s
# retries: 5
healthcheck:
test: [ "CMD", "/entrypoint.sh", "lightning-cli", "--network=regtest", "getinfo" ]
interval: 10s
retries: 5

cln1_alice:
container_name: regtest_cln1_alice
Expand Down Expand Up @@ -159,6 +159,10 @@ services:
- ./data/cln_common/regtest/server-key.pem:/home/clightning/.lightning/regtest/server-key.pem
ports:
- "19936:19935"
healthcheck:
test: [ "CMD", "/entrypoint.sh", "lightning-cli", "--network=regtest", "getinfo" ]
interval: 10s
retries: 5

cln2_bob:
container_name: regtest_cln2_bob
Expand Down Expand Up @@ -195,6 +199,10 @@ services:
- ./data/cln_common/regtest/server-key.pem:/home/clightning/.lightning/regtest/server-key.pem
ports:
- "19937:19935"
healthcheck:
test: [ "CMD", "/entrypoint.sh", "lightning-cli", "--network=regtest", "getinfo" ]
interval: 10s
retries: 5

cln3_charlie:
container_name: regtest_cln3_charlie
Expand Down Expand Up @@ -231,6 +239,10 @@ services:
- ./data/cln_common/regtest/server-key.pem:/home/clightning/.lightning/regtest/server-key.pem
ports:
- "19938:19935"
healthcheck:
test: [ "CMD", "/entrypoint.sh", "lightning-cli", "--network=regtest", "getinfo" ]
interval: 10s
retries: 5

cln4_dave:
container_name: regtest_cln4_dave
Expand Down Expand Up @@ -267,6 +279,10 @@ services:
- ./data/cln_common/regtest/server-key.pem:/home/clightning/.lightning/regtest/server-key.pem
ports:
- "19939:19935"
healthcheck:
test: [ "CMD", "/entrypoint.sh", "lightning-cli", "--network=regtest", "getinfo" ]
interval: 10s
retries: 5

cln5_erin:
container_name: regtest_cln5_erin
Expand Down Expand Up @@ -303,6 +319,10 @@ services:
- ./data/cln_common/regtest/server-key.pem:/home/clightning/.lightning/regtest/server-key.pem
ports:
- "19940:19935"
healthcheck:
test: [ "CMD", "/entrypoint.sh", "lightning-cli", "--network=regtest", "getinfo" ]
interval: 10s
retries: 5

lnd6_farid:
container_name: regtest_lnd6_farid
Expand Down

0 comments on commit 2637381

Please sign in to comment.