Skip to content

Commit 3521217

Browse files
committed
remove config file, expose signet ports and set up ZMQ notifications by default
1 parent fd356a9 commit 3521217

File tree

3 files changed

+14
-18
lines changed

3 files changed

+14
-18
lines changed

bitcoin.conf

-4
This file was deleted.

v25.1.knots20231115/Dockerfile

+7-7
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ FROM alpine:3.19
6969

7070
COPY --from=builder /usr/local/bin/* /usr/local/bin/
7171

72-
COPY bitcoin.conf /etc/bitcoin/bitcoin.conf
73-
7472
RUN adduser -D bitcoin
7573

7674
USER bitcoin
@@ -82,13 +80,15 @@ VOLUME /home/bitcoin/.bitcoin
8280
# REST interface
8381
EXPOSE 8080
8482

85-
# P2P network (mainnet, testnet & regnet respectively)
86-
EXPOSE 8333 18333 18444
83+
# P2P network (mainnet, testnet, regtest & signet respectively)
84+
EXPOSE 8333 18333 18444 38333
8785

88-
# RPC interface (mainnet, testnet & regnet respectively)
89-
EXPOSE 8332 18332 18443
86+
# RPC interface (mainnet, testnet, regtest & signet respectively)
87+
EXPOSE 8332 18332 18443 38332
9088

9189
# ZMQ ports (for transactions & blocks respectively)
9290
EXPOSE 28332 28333
9391

94-
CMD ["/usr/local/bin/bitcoind", "-conf=/etc/bitcoin/bitcoin.conf"]
92+
ENTRYPOINT ["/usr/local/bin/bitcoind", "-nodebuglogfile"]
93+
94+
CMD ["-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"]

v26.1.knots20240325/Dockerfile

+7-7
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ FROM alpine:3.19
6969

7070
COPY --from=builder /usr/local/bin/* /usr/local/bin/
7171

72-
COPY bitcoin.conf /etc/bitcoin/bitcoin.conf
73-
7472
RUN adduser -D bitcoin
7573

7674
USER bitcoin
@@ -82,13 +80,15 @@ VOLUME /home/bitcoin/.bitcoin
8280
# REST interface
8381
EXPOSE 8080
8482

85-
# P2P network (mainnet, testnet & regnet respectively)
86-
EXPOSE 8333 18333 18444
83+
# P2P network (mainnet, testnet, regtest & signet respectively)
84+
EXPOSE 8333 18333 18444 38333
8785

88-
# RPC interface (mainnet, testnet & regnet respectively)
89-
EXPOSE 8332 18332 18443
86+
# RPC interface (mainnet, testnet, regtest & signet respectively)
87+
EXPOSE 8332 18332 18443 38332
9088

9189
# ZMQ ports (for transactions & blocks respectively)
9290
EXPOSE 28332 28333
9391

94-
CMD ["/usr/local/bin/bitcoind", "-conf=/etc/bitcoin/bitcoin.conf"]
92+
ENTRYPOINT ["/usr/local/bin/bitcoind", "-nodebuglogfile"]
93+
94+
CMD ["-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"]

0 commit comments

Comments
 (0)