pin docker container versions

This commit is contained in:
Philip Henning 2025-02-04 18:50:08 +01:00
parent 1602b7b771
commit af021924fa
4 changed files with 21 additions and 14 deletions

View file

@ -12,7 +12,7 @@ services:
GEOIPUPDATE_LICENSE_KEY: "${GEOIPUPDATE_LICENSE_KEY:?MaxMind GeoIP license key required}"
postgresql:
image: docker.io/library/postgres:16-alpine
image: docker.io/library/postgres:${POSTGRES_TAG:-16.6-alpine}
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
@ -33,7 +33,7 @@ services:
- backend
redis:
image: docker.io/library/redis:alpine
image: docker.io/library/redis:${REDIS_TAG:-7.4.2-alpine}
command: --save 60 1 --loglevel warning
restart: unless-stopped
healthcheck:
@ -110,7 +110,7 @@ services:
context: ./docker/nginx
dockerfile: Dockerfile
args:
IMAGE: "nginxinc/nginx-unprivileged:1.27.2-bookworm"
IMAGE: "nginxinc/nginx-unprivileged:${NGINX_UNPRIVILEGED_TAG:-1.27.2-bookworm}"
IMG_TITLE: "nginx-unprivileged-base23"
IMAGE_VERSION: "COMPOSE"
depends_on:
@ -149,7 +149,7 @@ services:
- frontend
backup:
image: registry.git.base23.de/base23/backup/resticker:0.17.0
image: registry.git.base23.de/base23/backup/resticker:${RESTICKER_TAG:-0.17.0}
restart: unless-stopped
environment:
PRE_COMMANDS: |-
@ -182,7 +182,7 @@ services:
- ./data/.lego:/var/lib/lego/backups:ro
prune-backup:
image: registry.git.base23.de/base23/backup/resticker:0.17.0
image: registry.git.base23.de/base23/backup/resticker:${RESTICKER_TAG:-0.17.0}
restart: unless-stopped
environment:
SKIP_INIT: "true"
@ -196,7 +196,7 @@ services:
# prüft ob backups noch in Ordnung sind, evtl. erweitern zum prüfen der Daten
check-backup:
image: registry.git.base23.de/base23/backup/resticker:0.17.0
image: registry.git.base23.de/base23/backup/resticker:${RESTICKER_TAG:-0.17.0}
restart: unless-stopped
environment:
#RUN_ON_STARTUP: "true"
@ -210,7 +210,7 @@ services:
- ./data/restic/ssh/:/run/secrets/.ssh:ro
restore-cli:
image: registry.git.base23.de/base23/backup/resticker:0.17.0
image: registry.git.base23.de/base23/backup/resticker:${RESTICKER_TAG:-0.17.0}
entrypoint: /entrypoint-restore
environment:
RESTIC_REPOSITORY: sftp://${RESTIC_REPO_USER:?Restic repository user is required}@${RESTIC_REPO_ADDRESS:?Restic repository address is requried}:${RESTIC_REPO_PORT:?Restic repository port is required}//backup