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