From d75019350e62f0f05ae1d9d010db0b448bfb69d0 Mon Sep 17 00:00:00 2001 From: Snider Date: Thu, 2 Oct 2025 19:22:10 +0100 Subject: [PATCH] Add docker-compose and update lthn-chain Dockerfile Introduces a docker-compose.yml for the lethean-chain service with build arguments and volume mapping. Updates the lthn-chain Dockerfile to expose required ports and modifies the entrypoint to include data directory and additional flags. --- docker-compose.yml | 27 +++++++++++++++++++++++ utils/docker/images/lthn-chain/Dockerfile | 5 ++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..0653393a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,27 @@ +version: '3.8' +services: + lethean-chain: + image: lthn/chain:testnet + build: + tags: + - lthn/chain:testnet + dockerfile: utils/docker/images/lthn-chain/Dockerfile + context: . + target: chain-service + args: + - BUILD_THREADS=1 + - BUILD_TESTNET=1 + - BUILD_STATIC=0 + - BUILD_BRANCH=dev + - BUILD_LOCAL=1 + - BUILD_REPO=https://github.com/letheanVPN/blockchain.git + - BUILD_FOLDER=build/release + - BUILD_TYPE=Release + ports: + - "36941:36941" + - "36942:36942" + volumes: + - lethean_data:/data + +volumes: + lethean_data: \ No newline at end of file diff --git a/utils/docker/images/lthn-chain/Dockerfile b/utils/docker/images/lthn-chain/Dockerfile index 0ed6d66f..4d02f8c1 100644 --- a/utils/docker/images/lthn-chain/Dockerfile +++ b/utils/docker/images/lthn-chain/Dockerfile @@ -65,6 +65,9 @@ FROM ubuntu:24.04 AS chain-service COPY --from=build-artifacts --chmod=+x / /bin +EXPOSE 36941 +EXPOSE 36942 + RUN lethean-chain-node --help -ENTRYPOINT ["lethean-chain-node"] \ No newline at end of file +ENTRYPOINT ["lethean-chain-node", "--data-dir", "/data", "--disable-upnp", "--disable-debug-p2p-requests"] \ No newline at end of file