twenty can't find its database
I'm trying to run Twenty behind a reverse proxy (traefik) and I have been using a script to help manage/configure it (deplyrr).
In doing so, I'm trying to shoe-horn the .env's together by transplanting all of twenty's env variables into my other .env, and use the same ones that I am able to get working with twenty as a standalone stack, AND get twenty to fit into the formatting that deployrr uses - to be able to use the automation that it has setup with traefik... but I keep running into the same issue where the server cannot find the database at the database address.
I have all of the services split up into individual yml files (twenty-server.yml, twenty-worker.yml, twenty-db.yml) and redis is already running on my server, and has been associated (I assume correcly.. But I even if I create a second redis container using pre-defined settings, it doesn't seem to help)
Can anyone see what I'm doing incorrectly here?

6 Replies
this is the error I get in the container log (via portainer)
Your database container (and thus the database host) is called
twenty-db
, not db
, isn't it?
The error is about postgres, not redis.It is. I change the container back to db?
You can tell how new to this I am. Changed my db host to twenty-db and it seems to be working now
Man, I'm so used to figuring out complicated and obscure issues with commercial 3d printers and chemistry, that this stuff sometims just flies right over my head or under my radar. Thank you so much.
Getting a validation error now. I'm probably messing something else up. I may just give up on this config and try again with caddy instead, the complexity of this makes my head reel.
Hello please review your
SERVER_URL
env var
There was an x in the begining of the ip address, I must have fatfingered it when trying to exit nano. Thank you! It's working!
Nice ! Enjoy coding !