Skip to content

Commit 0269a72

Browse files
committed
chore(docker): replace abandoned containrrr/watchtower, improve .env template
Replace containrrr/watchtower:latest with nickfedor/watchtower:1.15.0. The original containrrr/watchtower was archived on 2025-12-17 and is incompatible with Docker 29+. The nickfedor fork is a drop-in replacement that is actively maintained. Improve .env.production.template with sensible example values for all configuration options including observability endpoints and resource limits.
1 parent 0666bb7 commit 0269a72

2 files changed

Lines changed: 36 additions & 18 deletions

File tree

‎docker/.env.production.template‎

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,51 @@
11
# Production deployment environment variables
2-
# This file should be created by deploy-validator.sh and renamed to .env
3-
# These variables are critical for the validator to function properly after restart
2+
# Normally created by deploy-validator.sh (see https://linera.dev/operators/testnets/one-click.html)
3+
# This template is a reference for manual setup or customization.
44

5-
# Domain configuration (set by deploy script)
6-
DOMAIN=${DOMAIN}
7-
ACME_EMAIL=${ACME_EMAIL}
5+
# Domain configuration
6+
DOMAIN=your-domain.example.com
7+
ACME_EMAIL=admin@example.com
88

99
# Genesis configuration (critical - validator won't work without this)
10-
GENESIS_URL=${GENESIS_URL}
11-
GENESIS_BUCKET=${GENESIS_BUCKET}
12-
GENESIS_PATH_PREFIX=${GENESIS_PATH_PREFIX}
10+
GENESIS_URL=https://storage.googleapis.com/linera-io-dev-public/testnet-conway/genesis.json
11+
GENESIS_BUCKET=https://storage.googleapis.com/linera-io-dev-public
12+
GENESIS_PATH_PREFIX=testnet-conway
1313

1414
# Validator configuration
15-
VALIDATOR_KEY=${VALIDATOR_KEY}
16-
VALIDATOR_NAME=${VALIDATOR_NAME}
15+
VALIDATOR_KEY=
16+
VALIDATOR_NAME=
1717

1818
# Network configuration
19-
FAUCET_URL=${FAUCET_URL}
20-
FAUCET_PORT=${FAUCET_PORT:-8080}
19+
FAUCET_URL=
20+
FAUCET_PORT=8080
2121

2222
# Storage configuration
23-
LINERA_STORAGE_SERVICE_PORT=${LINERA_STORAGE_SERVICE_PORT:-1235}
23+
LINERA_STORAGE_SERVICE_PORT=1235
2424

25-
# Docker image
26-
LINERA_IMAGE=${LINERA_IMAGE}
25+
# Docker image (default: testnet conway release from public registry)
26+
#LINERA_IMAGE=us-docker.pkg.dev/linera-io-dev/linera-public-registry/linera:testnet_conway_release
27+
28+
# Hostname identifier for this validator (used in metrics labels)
29+
HOSTNAME=your-domain.example.com
30+
31+
# Observability - Prometheus metrics push (OTLP format)
32+
#PROMETHEUS_OTLP_URL=https://your-prometheus-endpoint/otlp
33+
#PROMETHEUS_OTLP_USER=
34+
#PROMETHEUS_OTLP_PASS=
35+
36+
# Observability - Loki logs push
37+
#LOKI_PUSH_URL=https://your-loki-endpoint/loki/api/v1/push
38+
#LOKI_PUSH_USER=
39+
#LOKI_PUSH_PASS=
40+
41+
# Observability - Tempo traces push
42+
#TEMPO_OTLP_URL=https://your-tempo-endpoint/tempo/otlp
43+
#TEMPO_OTLP_USER=
44+
#TEMPO_OTLP_PASS=
2745

2846
# Resource limits (adjust based on host machine specs)
2947
# Defaults are tuned for an 8-core / 32GB RAM machine.
30-
# To disable limits, comment out the relevant lines.
48+
# Uncomment and modify to override defaults.
3149
#LIMIT_CPUS_WEB=1.00
3250
#LIMIT_MEM_WEB=1536M
3351
#LIMIT_CPUS_SCYLLA=2.00
@@ -43,4 +61,4 @@ LINERA_IMAGE=${LINERA_IMAGE}
4361
#LIMIT_CPUS_GRAFANA=0.50
4462
#LIMIT_MEM_GRAFANA=512M
4563
#LIMIT_CPUS_WATCHTOWER=0.25
46-
#LIMIT_MEM_WATCHTOWER=256M
64+
#LIMIT_MEM_WATCHTOWER=256M

‎docker/docker-compose.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ services:
280280
memory: ${LIMIT_MEM_GRAFANA:-512M}
281281

282282
watchtower:
283-
image: containrrr/watchtower:latest
283+
image: nickfedor/watchtower:1.15.0
284284
container_name: watchtower
285285
restart: unless-stopped
286286
volumes:

0 commit comments

Comments
 (0)