mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-04 18:14:28 +00:00
backward compatibility: use default UID=1000 GID=1000 (#4702)
* backward compatibility: use default UID=1000 GID=1000 * backward compatibility: use default UID=1000 GID=1000
This commit is contained in:
parent
991d65c0d3
commit
ed42f98a98
@ -2,5 +2,5 @@
|
|||||||
ERIGON_USER=erigon
|
ERIGON_USER=erigon
|
||||||
|
|
||||||
# UID, GID of user inside docker process which must exist also on host OS
|
# UID, GID of user inside docker process which must exist also on host OS
|
||||||
DOCKER_UID=3473 # random number [1001, 10000] chosen arbitrarily for example
|
DOCKER_UID=1000 # random number [1001, 10000] chosen arbitrarily for example
|
||||||
DOCKER_GID=3473 # can choose any valid #. 1000 tends to be taken by first user
|
DOCKER_GID=1000 # can choose any valid #. 1000 tends to be taken by first user
|
||||||
|
@ -25,11 +25,11 @@ services:
|
|||||||
erigon:
|
erigon:
|
||||||
image: thorax/erigon:${TAG:-latest}
|
image: thorax/erigon:${TAG:-latest}
|
||||||
build:
|
build:
|
||||||
args:
|
args:
|
||||||
UID: ${DOCKER_UID}
|
UID: ${DOCKER_UID:1000}
|
||||||
GID: ${DOCKER_GID}
|
GID: ${DOCKER_GID:1000}
|
||||||
context: .
|
context: .
|
||||||
user: "${DOCKER_UID}:${DOCKER_GID}"
|
user: "${DOCKER_UID:1000}:${DOCKER_GID:1000}"
|
||||||
command: |
|
command: |
|
||||||
erigon ${ERIGON_FLAGS-} --private.api.addr=0.0.0.0:9090
|
erigon ${ERIGON_FLAGS-} --private.api.addr=0.0.0.0:9090
|
||||||
--sentry.api.addr=sentry:9091 --downloader.api.addr=downloader:9093 --txpool.disable
|
--sentry.api.addr=sentry:9091 --downloader.api.addr=downloader:9093 --txpool.disable
|
||||||
@ -67,7 +67,7 @@ services:
|
|||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus:v2.36.2
|
image: prom/prometheus:v2.36.2
|
||||||
user: ${DOCKER_UID}:${DOCKER_GID} # Uses erigon user from Dockerfile
|
user: ${DOCKER_UID:1000}:${DOCKER_GID:1000} # Uses erigon user from Dockerfile
|
||||||
command: --log.level=warn --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus --storage.tsdb.retention.time=150d --web.console.libraries=/usr/share/prometheus/console_libraries --web.console.templates=/usr/share/prometheus/consoles
|
command: --log.level=warn --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus --storage.tsdb.retention.time=150d --web.console.libraries=/usr/share/prometheus/console_libraries --web.console.templates=/usr/share/prometheus/consoles
|
||||||
ports: [ "9090:9090" ]
|
ports: [ "9090:9090" ]
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
Reference in New Issue
Block a user