Move hard-coded env values into default-environment.env

This commit is contained in:
beatz174-bit
2026-04-07 15:08:59 +10:00
parent 7f70bd2acb
commit 634abe4b39
11 changed files with 151 additions and 70 deletions
+3 -3
View File
@@ -10,9 +10,9 @@ services:
environment:
- TZ=${TZ}
- GOTIFY_DEFAULTUSER_NAME=admin
- GOTIFY_DEFAULTUSER_PASS=R1m@dmin
- GOTIFY_REGISTRATION=false
- GOTIFY_DEFAULTUSER_NAME=${GOTIFY_DEFAULTUSER_NAME}
- GOTIFY_DEFAULTUSER_PASS=${GOTIFY_DEFAULTUSER_PASS}
- GOTIFY_REGISTRATION=${GOTIFY_REGISTRATION}
networks:
# - traefik_reverse_proxy
+2 -2
View File
@@ -4,8 +4,8 @@ set -euo pipefail
#: "${GOTIFY_URL:?Set GOTIFY_URL (e.g. https://gotify.lan.ddnsgeek.com)}"
#: "${GOTIFY_TOKEN:?Set GOTIFY_TOKEN (AAM..CtNmUGoNIV)}"
GOTIFY_URL="https://gotify.lan.ddnsgeek.com"
GOTIFY_TOKEN="ADuOnDBG7C27hcf"
GOTIFY_URL="${GOTIFY_URL}"
GOTIFY_TOKEN="${GOTIFY_TOKEN}"
STATE_DIR="./docker-health-alert"
STATE_FILE="${STATE_DIR}/last_unhealthy.txt"
+1 -1
View File
@@ -5,7 +5,7 @@ services:
container_name: grafana
restart: unless-stopped
environment:
- GF_SERVER_ROOT_URL=https://grafana.lan.ddnsgeek.com/
- GF_SERVER_ROOT_URL=${GRAFANA_ROOT_URL}
volumes:
- ${PROJECT_ROOT}/monitoring/grafana/data:/var/lib/grafana
networks:
+1 -1
View File
@@ -24,7 +24,7 @@ services:
- traefik.http.services.portainer.loadbalancer.server.port=9000
environment:
- GODEBUG=netdns=cgo
- GODEBUG=${PORTAINER_GODEBUG}
# healthcheck:
# test: ["CMD", "wget", "--spider", "-q", "https://portainer.lan.ddnsgeek.com/api/status"]
# interval: 30s
+9 -9
View File
@@ -104,11 +104,11 @@ services:
volumes:
- ${PROJECT_ROOT}/monitoring/influxdb:/var/lib/influxdb2
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: admin
DOCKER_INFLUXDB_INIT_PASSWORD: adminpassword
DOCKER_INFLUXDB_INIT_ORG: pbs
DOCKER_INFLUXDB_INIT_BUCKET: telemetry
DOCKER_INFLUXDB_INIT_MODE: ${INFLUXDB_INIT_MODE}
DOCKER_INFLUXDB_INIT_USERNAME: ${INFLUXDB_INIT_USERNAME}
DOCKER_INFLUXDB_INIT_PASSWORD: ${INFLUXDB_INIT_PASSWORD}
DOCKER_INFLUXDB_INIT_ORG: ${INFLUXDB_INIT_ORG}
DOCKER_INFLUXDB_INIT_BUCKET: ${INFLUXDB_INIT_BUCKET}
networks:
# - edge
# - traefik_reverse_proxy
@@ -162,7 +162,7 @@ services:
# - ${PROJECT_ROOT}/monitoring/docker-exporter/data:/data:rw
# - ${PROJECT_ROOT}/services-up.sh:/app/services-up.sh:ro
environment:
LOG_LEVEL: INFO
LOG_LEVEL: ${DOCKER_EXPORTER_LOG_LEVEL}
volumes:
- ~/.docker/config.json:/root/.docker/config.json:ro
@@ -206,9 +206,9 @@ services:
image: ekofr/pihole-exporter:latest
container_name: pihole-exporter
environment:
PIHOLE_HOSTNAME: pihole.sweet.home
PIHOLE_PASSWORD: ""
PORT: 9617
PIHOLE_HOSTNAME: ${PIHOLE_HOSTNAME}
PIHOLE_PASSWORD: "${PIHOLE_PASSWORD}"
PORT: ${PIHOLE_EXPORTER_PORT}
ports:
- "9617:9617"
restart: unless-stopped