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

This commit is contained in:
lza_menace
2020-09-30 08:25:02 -07:00
parent 4a979803bf
commit 74d800614d
2 changed files with 7 additions and 3 deletions

View File

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