From fc6ed8e7f9aabd8efd4377379c1572a3ffa54218 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 4 Sep 2022 00:30:47 +0200 Subject: [PATCH] root: make redis persistent in docker-compose fixes compose repeatedly creating new volumes on updates Signed-off-by: Jens Langhammer --- docker-compose.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 76a0102b9..3074880c9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: '3.4' services: postgresql: - image: postgres:12-alpine + image: docker.io/library/postgres:12-alpine restart: unless-stopped healthcheck: test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"] @@ -20,7 +20,8 @@ services: env_file: - .env redis: - image: redis:alpine + image: docker.io/library/redis:alpine + command: --save 60 1 --loglevel warning restart: unless-stopped healthcheck: test: ["CMD-SHELL", "redis-cli ping | grep PONG"] @@ -28,6 +29,8 @@ services: interval: 30s retries: 5 timeout: 3s + volumes: + - redis:/data server: image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2022.8.2} restart: unless-stopped @@ -85,5 +88,7 @@ services: volumes: database: driver: local + redis: + driver: local geoip: driver: local