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.

  • Tinkerer@lemmy.caOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    4 days ago

    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.

    • afk_strats@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 days ago

      Try

      docker compose up - d && docker compose logs -f
      

      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.