moving monerod command to docker-compose.yaml for easier management and variablizing thread args

testing-process-exporter
lza_menace 4 years ago
parent 4a979803bf
commit 74d800614d

@ -1,5 +1,7 @@
FROM ubuntu:19.10 as og
ARG threads
WORKDIR /opt/monero
RUN apt-get update && apt-get install -y \
@ -10,7 +12,7 @@ RUN git clone https://github.com/monero-project/monero --branch=v0.17.0.1 --dept
RUN git submodule update --init --force
RUN make -j1
RUN make -j$threads
FROM ubuntu:19.10
@ -31,5 +33,3 @@ EXPOSE 18080
EXPOSE 18081
EXPOSE 18082
EXPOSE 18083
ENTRYPOINT ["monerod", "--data-dir=/data", "--p2p-bind-ip=0.0.0.0", "--p2p-bind-port=18080", "--rpc-bind-ip=0.0.0.0", "--rpc-bind-port=18083", "--zmq-rpc-bind-ip=0.0.0.0", "--zmq-rpc-bind-port=18082", "--non-interactive", "--confirm-external-bind", "--public-node", "--rpc-restricted-bind-port=18081", "--log-level=0"]

@ -55,6 +55,8 @@ services:
build:
context: .
dockerfile: Dockerfile-monero
args:
threads: ${THREADS:-1}
volumes:
- ${DATA_DIR:-./data}:/data
ports:
@ -62,3 +64,5 @@ services:
- 18081:18081 # restricted rpc
- 18082:18082 # zmq
- 18083:18083 # unrestricted rpc
command:
monerod --data-dir=/data --p2p-bind-ip=0.0.0.0 --p2p-bind-port=18080 --rpc-restricted-bind-port=18081 --zmq-rpc-bind-ip=0.0.0.0 --zmq-rpc-bind-port=18082 --rpc-bind-ip=0.0.0.0 --rpc-bind-port=18083 --non-interactive --confirm-external-bind --public-node --log-level=0

Loading…
Cancel
Save