feat: allow passing variables to docker-compose and fix var name (#2821)

This commit is contained in:
Richard Ramos 2022-09-15 15:41:00 -04:00 committed by GitHub
parent 208f075b72
commit 11e432d341
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 3 deletions

View File

@ -72,7 +72,7 @@ keys:
start: keys/nodekey keys/nodeaddr
@echo " * $(GRN)Starting '$(CONTAINER_NAME)' container...$(RST)"
docker-compose up -d
docker-compose $(COMPOSE_UP_FLAGS) up -d
stop:
@echo " * $(YLW)Stopping '$(CONTAINER_NAME)' container...$(RST)"

View File

@ -32,3 +32,4 @@ All settings are passed through environment variables:
* `CONTAINER_TAG` - Tag of container image to use. (default: `v0.64.3`)
* `CONTAINER_NAME` - Name of the container that will be created. (default: `status-go-bootnode`)
* `LOG_LEVEL` - Set level of log messages to show. (valid: `1=ERROR`, `2=WARN`, `3=INFO`, `4=DEBUG`, `5=TRACE`)
* `COMPOSE_UP_FLAGS` - Allows passing flags to `docker-compose up`

View File

@ -71,7 +71,7 @@ logs:
start: config
@echo " * $(GRN)Starting '$(CONTAINER_NAME)' container...$(RST)"
docker-compose up -d
docker-compose $(COMPOSE_UP_FLAGS) up -d
stop:
@echo " * $(YLW)Stopping '$(CONTAINER_NAME)' container...$(RST)"

View File

@ -37,6 +37,7 @@ All settings are passed through environment variables:
* `REGISTER_TOPIC` - Mynamic mailserver discovery topic. (default: `whispermail`)
* `MAIL_PASSWORD` - Basic HTTP auth password for mailserver. (default: `status-offline-inbox`)
* `LOG_LEVEL` - Set level of log messages to show. (valid: `ERROR`, `WARN`, `INFO`, `DEBUG`, `TRACE`)
* `COMPOSE_UP_FLAGS` - Allows passing flags to `docker-compose up`
The generated configuration file end up under `${DATA_PATH}/config.json`.

View File

@ -6,7 +6,7 @@ GIT_ROOT=$(cd "${BASH_SOURCE%/*}" && git rev-parse --show-toplevel)
# Settings & defaults
RPC_HOST="${RPC_HOST:-localhost}"
RPC_PORT="${RPC_PORT:-8545}"
LISTEN_PORT="${LSTEN_PORT:-30303}"
LISTEN_PORT="${LISTEN_PORT:-30303}"
API_MODULES="${API_MODULES:-eth,web3,admin}"
MAX_PEERS="${MAX_PEERS:-50}"
DAYS_KEPT="${DAYS_KEPT-30}"