update docker-files with dependency order and use new monerod command

tor-i2p-proxies
lza_menace 3 days ago
parent 876f7ce582
commit b646b88113

@ -1,5 +1,3 @@
version: "3.7"
volumes: volumes:
grafana: grafana:
prometheus: prometheus:
@ -20,6 +18,9 @@ services:
- --storage.tsdb.retention.time=${PROM_RETENTION:-360d} - --storage.tsdb.retention.time=${PROM_RETENTION:-360d}
container_name: monerod_prometheus container_name: monerod_prometheus
restart: unless-stopped restart: unless-stopped
depends_on:
exporter:
condition: service_started
ports: ports:
- 127.0.0.1:9090:9090 - 127.0.0.1:9090:9090
volumes: volumes:
@ -60,6 +61,9 @@ services:
context: . context: .
dockerfile: dockerfiles/exporter dockerfile: dockerfiles/exporter
restart: unless-stopped restart: unless-stopped
depends_on:
monerod:
condition: service_started
ports: ports:
- 127.0.0.1:9000:9000 - 127.0.0.1:9000:9000
command: command:
@ -71,18 +75,46 @@ services:
build: build:
context: . context: .
dockerfile: dockerfiles/nodemapper dockerfile: dockerfiles/nodemapper
depends_on:
monerod:
condition: service_started
environment: environment:
NODE_HOST: monerod NODE_HOST: monerod
NODE_PORT: 18083 NODE_PORT: 18083
ports: ports:
- 127.0.0.1:${MAPPER_PORT:-5000}:5000 - 127.0.0.1:${MAPPER_PORT:-5000}:5000
<<: *log-config <<: *log-config
tor:
container_name: monerod_tor
build:
context: .
dockerfile: dockerfiles/tor
restart: unless-stopped
# ports:
# - 127.0.0.1:9050:9050
<<: *log-config
i2p:
container_name: monerod_i2p
build:
context: .
dockerfile: dockerfiles/i2p
restart: unless-stopped
# ports:
# - 127.0.0.1:4444:4444
<<: *log-config
monerod: monerod:
container_name: monerod container_name: monerod
build: build:
context: dockerfiles context: .
dockerfile: monero_compile dockerfile: dockerfiles/monero_compile
args:
THREADS: ${THREADS:-2}
restart: unless-stopped restart: unless-stopped
depends_on:
tor:
condition: service_started
i2p:
condition: service_started
volumes: volumes:
- ${DATA_DIR:-./data}:/data - ${DATA_DIR:-./data}:/data
ports: ports:
@ -91,5 +123,5 @@ services:
- 127.0.0.1:${ZMQ_PORT:-18082}:18082 # zmq - 127.0.0.1:${ZMQ_PORT:-18082}:18082 # zmq
- 127.0.0.1:${UNRESTRICTED_PORT:-18083}:18083 # unrestricted rpc - 127.0.0.1:${UNRESTRICTED_PORT:-18083}:18083 # unrestricted rpc
command: command:
monerod --data-dir=/data --p2p-bind-ip=0.0.0.0 --p2p-bind-port=18080 --rpc-restricted-bind-ip=0.0.0.0 --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 --enable-dns-blocklist --rpc-ssl=disabled --ban-list=/ban_list.txt /entrypoint.sh
<<: *log-config <<: *log-config

@ -18,6 +18,9 @@ services:
- --storage.tsdb.retention.time=${PROM_RETENTION:-360d} - --storage.tsdb.retention.time=${PROM_RETENTION:-360d}
container_name: monerod_prometheus container_name: monerod_prometheus
restart: unless-stopped restart: unless-stopped
depends_on:
exporter:
condition: service_started
# ports: # ports:
# - 127.0.0.1:9090:9090 # - 127.0.0.1:9090:9090
volumes: volumes:
@ -58,6 +61,9 @@ services:
context: . context: .
dockerfile: dockerfiles/exporter dockerfile: dockerfiles/exporter
restart: unless-stopped restart: unless-stopped
depends_on:
monerod:
condition: service_started
# ports: # ports:
# - 127.0.0.1:9000:9000 # - 127.0.0.1:9000:9000
command: command:
@ -69,6 +75,9 @@ services:
build: build:
context: . context: .
dockerfile: dockerfiles/nodemapper dockerfile: dockerfiles/nodemapper
depends_on:
monerod:
condition: service_started
environment: environment:
NODE_HOST: monerod NODE_HOST: monerod
NODE_PORT: 18083 NODE_PORT: 18083
@ -111,4 +120,6 @@ services:
- ${RESTRICTED_PORT:-18081}:18081 # restricted rpc - ${RESTRICTED_PORT:-18081}:18081 # restricted rpc
- 127.0.0.1:${ZMQ_PORT:-18082}:18082 # zmq - 127.0.0.1:${ZMQ_PORT:-18082}:18082 # zmq
- 127.0.0.1:${UNRESTRICTED_PORT:-18083}:18083 # unrestricted rpc - 127.0.0.1:${UNRESTRICTED_PORT:-18083}:18083 # unrestricted rpc
command:
/entrypoint.sh
<<: *log-config <<: *log-config

Loading…
Cancel
Save