You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the latest version of authentik and i am trying to use a external redis server. Can someone help me with the correct docker compose file to make this work ?
Below is my config and no matter what i do it doesnt work. The images come up unhealthy.
I am using the latest version of authentik and i am trying to use a external redis server. Can someone help me with the correct docker compose file to make this work ?
Below is my config and no matter what i do it doesnt work. The images come up unhealthy.
services:$${POSTGRES_DB} -U $$ {POSTGRES_USER}"]
postgresql:
image: docker.io/library/postgres:16-alpine
container_name: tlt-authentik-sso-project-postgresql
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -d
start_period: 20s
interval: 30s
retries: 5
timeout: 5s
volumes:
- database:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
env_file:
- .env
server:
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2024.4.2}
container_name: tlt-authentik-sso-project-server
restart: unless-stopped
command: server
environment:
AUTHENTIK_REDIS__HOST: redis
AUTHENTIK_REDIS__PORT: 6379
AUTHENTIK_REDIS__PASSWORD: ${REDIS_PASSWORD}
AUTHENTIK_REDIS__TLS: "true"
AUTHENTIK_REDIS__TLS_REQS: "true"
AUTHENTIK_REDIS__TLS_CA_CERT: /etc/ssl/redis/redis-server-cert.pem
AUTHENTIK_POSTGRESQL__HOST: postgresql
AUTHENTIK_POSTGRESQL__USER: ${POSTGRES_USER}
AUTHENTIK_POSTGRESQL__NAME: ${POSTGRES_DB}
AUTHENTIK_POSTGRESQL__PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ./media:/media
- ./custom-templates:/templates
env_file:
- .env
ports:
- "${COMPOSE_PORT_HTTP:-9000}:9000"
- "${COMPOSE_PORT_HTTPS:-9443}:9443"
depends_on:
- postgresql
worker:
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2024.4.2}
restart: unless-stopped
command: worker
environment:
AUTHENTIK_REDIS__HOST: redis
AUTHENTIK_REDIS__PORT: 6379
AUTHENTIK_REDIS__PASSWORD: ${REDIS_PASSWORD}
AUTHENTIK_REDIS__TLS: "true"
AUTHENTIK_REDIS__TLS_REQS: "true"
AUTHENTIK_REDIS__TLS_CA_CERT: /etc/ssl/redis/redis-server-cert.pem
AUTHENTIK_POSTGRESQL__HOST: postgresql
AUTHENTIK_POSTGRESQL__USER: ${POSTGRES_USER}
AUTHENTIK_POSTGRESQL__NAME: ${POSTGRES_DB}
AUTHENTIK_POSTGRESQL__PASSWORD: ${POSTGRES_PASSWORD}
user: root
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./media:/media
- ./certs:/certs
- ./custom-templates:/templates
env_file:
- .env
depends_on:
- postgresql
volumes:
database:
driver: local
What am i doing wrong?
The text was updated successfully, but these errors were encountered: