1
0
Fork 0
forked from lthn/blockchain

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.
This commit is contained in:
Snider 2025-10-02 19:22:10 +01:00
parent d258daca4c
commit d75019350e
2 changed files with 31 additions and 1 deletions

27
docker-compose.yml Normal file
View file

@ -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:

View file

@ -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"]
ENTRYPOINT ["lethean-chain-node", "--data-dir", "/data", "--disable-upnp", "--disable-debug-p2p-requests"]