Authentik/Netbird Docker Setup
from Tinkerer@lemmy.ca to selfhosted@lemmy.world on 23 Jul 19:23
https://lemmy.ca/post/48491881
from Tinkerer@lemmy.ca to selfhosted@lemmy.world on 23 Jul 19:23
https://lemmy.ca/post/48491881
I’m looking to setup Authentikibut I can’t for the life of me get the postgresql container working. I’m gettingconnectionn refused.
I’ve followed the docentation, watched several videos of people who have done the exact same thing as me but its not working. The compose file is the same file from the documentation.
I’m running it on an lxc in proxmox but I’ve also tried a VM with the same result. Any ideas or assistance?
This is in preperation for netbird and I’ve also tried the netbird all in one docker script that uses Zitadel but again that fails as well. The zdb container fails with connection failed to server 172.20.0.2 ( docker IP). I need to have it connect to the host.
#selfhosted
threaded - newest
I too am running Authentik in an LXC and am using the default
docker-compose.yml
. Did you make sure to define your.env
file correctly? Are you able to connect to the docker container itself after deployment? You may need to blow the DB volume away and try again because it will only provision on first run.I definitely can’t connect to the container as it doesn’t start. I’ve also tried without the .env file and that doesn’t work either. I’ve even setup a new LXC and started from scratch with the same result. For reference I’m using Ubuntu server so maybe I’ll try a different distro…
I think you're not providing enough information to help you. You should provide your config files, some logs and detailed explanation of failure.
@Tinkerer @selfhosted
Yeah I’ll grab some logs and post my files tonight when I get time :)
time=“2025-07-23T20:49:22Z” level=info msg=“initialization started” caller=“/home/runner/work/zitadel/zitadel/cmd/initialise/init.go:75” time=“2025-07-23T20:49:22Z” level=fatal msg=“unable to initialize the database” caller=“/home/runner/work/zitadel/zitadel/cmd/initialise/init.go:68” error=“failed to connect to
user=root database=postgres
:\n\t127.0.0.1:5432 (localhost): dial error: dial tcp 127.0.0.1:5432: connect: connection refused\n\t[::1]:5432 (localhost): dial error: dial tcp [::1]:5432: connect: connection refused” time=“2025-07-23T20:49:23Z” level=info msg=“initialization started” caller=“/home/runner/work/zitadel/zitadel/cmd/initialise/init.go:75”When I run docker compose up it’s initializes all the containers and then the zdb container fails to load and I get the error messages above. I can’t seem to paste my docker compose file or environment files since it formats the code very weirdly and makes it hard to read.
Try
That should show you errors as things are starting.
Also three backticks and a new linestart a code block on Lemmy. Add your logs, then end it with a new line and another three backticks.
Here are the logs when starting up Authentik docker compose:
Here is the compose file I’m using:
I’ve also tried to run the docker compose file with not changes from the Zitadel documentation, zitadel.com/docs/self-hosting/deploy/compose
This is what shows:
docker ps -a then shows the root-zitadel-1 container created but not started, I can’t get any logs to show on the root-db-1 container even though it shows as running…
I start the root-zitadel-1 container and restart the root-db-1 container and this is what I get in the logs: