authentik
authentik copied to clipboard
Unraid Support
Add support for Unraid so it can be installed easily. As an interim, support to install with Docker Hub/docker create.
This has been asked in the reddit comments too, I don't use unRaid and I don't plan on doing so, if someone wants to PR it, I'll accept it.
Given Unraid supports Docker, that would be the easiest way to run it at the moment?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@BeryJu It would just need to be loaded into Dockerhub, which I believe to keep it up to date if you authorize it to pull from your profile on github. The default docker configuration has issues pulling from github, I haven't consistently gotten it to work without using a custom container profile. https://www.youtube.com/watch?v=g6iMwea-HLY
@cyberjacob Most Unraid users use the Apps tab, which has preloaded templates for use with Unraid to expedite deployment of docker containers. https://www.youtube.com/watch?v=rokY1i6SA5A
Currently you can do it in unraid easily (but not natively) using portainer stacks. That is the way I am currently doing it.
Here is a copy of my config working in unraid via portainer
---
version: '3.2'
services:
server:
image: ${AUTHENTIK_IMAGE:-goauthentik.io/server}:${AUTHENTIK_TAG:-latest}
restart: unless-stopped
command: server
environment:
AUTHENTIK_REDIS__HOST: redis #Reference to unraid redis instance
# Database
AUTHENTIK_POSTGRESQL__HOST: postgresql14 #Reference to unraid postgres instance
AUTHENTIK_POSTGRESQL__USER: username
AUTHENTIK_POSTGRESQL__NAME: dbname
AUTHENTIK_POSTGRESQL__PASSWORD: password
# Other
AUTHENTIK_ERROR_REPORTING__ENABLED: "true"
AUTHENTIK_AVATARS: gravatar
AUTHENTIK_SECRET_KEY: secretkey
# Email
AUTHENTIK_EMAIL__HOST: email host
AUTHENTIK_EMAIL__PORT: port
AUTHENTIK_EMAIL__USERNAME: login
AUTHENTIK_EMAIL__PASSWORD: password
AUTHENTIK_EMAIL__USE_TLS: "false"
AUTHENTIK_EMAIL__USE_SSL: "true"
AUTHENTIK_EMAIL__TIMEOUT: 10
AUTHENTIK_EMAIL__FROM: emailFrom
volumes:
- /mnt/user/appdata/authentik/media:/media
- /mnt/user/appdata/authentik/custom-templates:/templates
ports:
- "0.0.0.0:9000:9000"
- "0.0.0.0:9443:9443"
networks:
default:
ipv4_address: 192.168.0.1 #enter unique IP address if you want to manually choose the ip
worker:
image: ${AUTHENTIK_IMAGE:-goauthentik.io/server}:${AUTHENTIK_TAG:-latest}
restart: unless-stopped
command: worker
environment:
AUTHENTIK_REDIS__HOST: redis
# Database
AUTHENTIK_POSTGRESQL__HOST: postgresql14 #Reference to unraid postgres instance
AUTHENTIK_POSTGRESQL__USER: username
AUTHENTIK_POSTGRESQL__NAME: dbname
AUTHENTIK_POSTGRESQL__PASSWORD: password
# Other
AUTHENTIK_ERROR_REPORTING__ENABLED: "true"
AUTHENTIK_AVATARS: gravatar
AUTHENTIK_SECRET_KEY: secretkey
# Email
AUTHENTIK_EMAIL__HOST: email host
AUTHENTIK_EMAIL__PORT: port
AUTHENTIK_EMAIL__USERNAME: login
AUTHENTIK_EMAIL__PASSWORD: password
AUTHENTIK_EMAIL__USE_TLS: "false"
AUTHENTIK_EMAIL__USE_SSL: "true"
AUTHENTIK_EMAIL__TIMEOUT: 10
AUTHENTIK_EMAIL__FROM: emailFrom
user: root
volumes:
- /mnt/user/appdata/authentik/backups:/backups
- /mnt/user/appdata/authentik/media:/media
- /mnt/user/appdata/authentik/certs:/certs
- /var/run/docker.sock:/var/run/docker.sock
- /mnt/user/appdata/authentik/custom-templates:/templates
networks:
default:
ipv4_address: 192.168.0.2 #enter unique IP address if you want to manually choose the ip
networks:
default:
external: true
name: nameOfUnraidCustomeNetwork # this should be the custom network all your unraid containers are on
volumes:
database:
driver: local
@rafaelmathieu That's a docker-compose file, which is already covered in the documentation here https://goauthentik.io/docs/installation/docker-compose/
@rafaelmathieu That's a docker-compose file, which is already covered in the documentation here https://goauthentik.io/docs/installation/docker-compose/
yes, but the compose file I copied is unraid specific. just incase someone wants to use it directly in portainer on unraid and doesn't want to do trial and error.
@rafaelmathieu That's a docker-compose file, which is already covered in the documentation here https://goauthentik.io/docs/installation/docker-compose/
yes, but the compose file I copied is unraid specific. just incase someone wants to use it directly in portainer on unraid and doesn't want to do trial and error.
I am stuck on the login page. What is the default password to akadmin? I am on unraid.
Hi @steRnbear87, the details for this are in the documentation, I'd suggest you have a read through before continuing your setup
https://goauthentik.io/docs/installation/docker-compose/?utm_source=github#startup
Hi @steRnbear87, the details for this are in the documentation, I'd suggest you have a read through before continuing your setup
https://goauthentik.io/docs/installation/docker-compose/?utm_source=github#startup
Thank you @girlpunk. I was able to log in. Just trying to figure out config. Is there any guide besides the documentation on how to get this set up with traefik? Definitely need some basic config just to get it up and running.