fix: DB+Redis auf externe Mounts statt Docker Volumes
This commit is contained in:
parent
7d2a5710ae
commit
8bb7b89669
1 changed files with 6 additions and 11 deletions
17
compose.yaml
17
compose.yaml
|
|
@ -2,7 +2,7 @@
|
||||||
services:
|
services:
|
||||||
postgresql:
|
postgresql:
|
||||||
image: docker.io/library/postgres:16-alpine
|
image: docker.io/library/postgres:16-alpine
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
|
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
|
||||||
start_period: 20s
|
start_period: 20s
|
||||||
|
|
@ -10,7 +10,7 @@ services:
|
||||||
retries: 5
|
retries: 5
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
volumes:
|
volumes:
|
||||||
- database:/var/lib/postgresql/data
|
- /app-config/authentik/db:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: ${PG_PASS}
|
POSTGRES_PASSWORD: ${PG_PASS}
|
||||||
POSTGRES_USER: authentik
|
POSTGRES_USER: authentik
|
||||||
|
|
@ -19,7 +19,7 @@ services:
|
||||||
redis:
|
redis:
|
||||||
image: docker.io/library/redis:alpine
|
image: docker.io/library/redis:alpine
|
||||||
command: --save 60 1 --loglevel warning
|
command: --save 60 1 --loglevel warning
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
|
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
|
||||||
start_period: 20s
|
start_period: 20s
|
||||||
|
|
@ -27,11 +27,11 @@ services:
|
||||||
retries: 5
|
retries: 5
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
volumes:
|
volumes:
|
||||||
- redis:/data
|
- /app-config/authentik/redis:/data
|
||||||
|
|
||||||
server:
|
server:
|
||||||
image: ghcr.io/goauthentik/server:${AUTHENTIK_TAG:-2024.12.3}
|
image: ghcr.io/goauthentik/server:${AUTHENTIK_TAG:-2024.12.3}
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
command: server
|
command: server
|
||||||
environment:
|
environment:
|
||||||
AUTHENTIK_REDIS__HOST: redis
|
AUTHENTIK_REDIS__HOST: redis
|
||||||
|
|
@ -55,7 +55,7 @@ services:
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
image: ghcr.io/goauthentik/server:${AUTHENTIK_TAG:-2024.12.3}
|
image: ghcr.io/goauthentik/server:${AUTHENTIK_TAG:-2024.12.3}
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
command: worker
|
command: worker
|
||||||
environment:
|
environment:
|
||||||
AUTHENTIK_REDIS__HOST: redis
|
AUTHENTIK_REDIS__HOST: redis
|
||||||
|
|
@ -77,8 +77,3 @@ services:
|
||||||
redis:
|
redis:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
volumes:
|
|
||||||
database:
|
|
||||||
driver: local
|
|
||||||
redis:
|
|
||||||
driver: local
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue