authentik icon indicating copy to clipboard operation
authentik copied to clipboard

Unraid Support

Open Nelinski opened this issue 4 years ago • 10 comments

Add support for Unraid so it can be installed easily. As an interim, support to install with Docker Hub/docker create.

Nelinski avatar Apr 15 '21 20:04 Nelinski

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.

BeryJu avatar Apr 15 '21 22:04 BeryJu

Given Unraid supports Docker, that would be the easiest way to run it at the moment?

girlpunk avatar Apr 15 '21 22:04 girlpunk

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.

stale[bot] avatar Jun 14 '21 22:06 stale[bot]

@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

lexxanite avatar Jun 16 '21 00:06 lexxanite

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 avatar Jan 17 '22 17:01 rafaelmathieu

@rafaelmathieu That's a docker-compose file, which is already covered in the documentation here https://goauthentik.io/docs/installation/docker-compose/

girlpunk avatar Jan 18 '22 17:01 girlpunk

@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 avatar Jan 18 '22 17:01 rafaelmathieu

@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.

steRnbear87 avatar Apr 10 '22 06:04 steRnbear87

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

girlpunk avatar Apr 10 '22 14:04 girlpunk

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.

steRnbear87 avatar Apr 12 '22 15:04 steRnbear87