isURL validation error during prod docker setup
Hi everyone
I am facing project startup issue during docker setup for production. The project is throwing error
property PG_DATABASE_URL has failed the following constraints: isUrl
.
I have tried multiple combination changing docker file, changing env, removing host but it still remains the same.
The final URL i get in docker echo is postgres://postgres:zestima9696@db:5432/default
Any help with this would be really appreciated. Thanks![No description](https://cdn.answeroverflow.com/1333831745212125194/Screenshot_2025-01-28_210259.png)
![No description](https://cdn.answeroverflow.com/1333831745472168128/Screenshot_2025-01-28_213748.png)
![No description](https://cdn.answeroverflow.com/1333831745774293085/Screenshot_2025-01-28_213811.png)
2 Replies
Hey @Nakul did you use a different password than the one in your screenshot? I encountered the same error when I used special characters.
https://discord.com/channels/1130383047699738754/1308392027964047390
Hey @Taldres No i am not using different password. I've figured out the issue
I was building PG_DATABSE_URL from env directly. It was configured in
server
service of docker-compose.yml not, but not configured correctly in worker
service. Added the same there and it started up
Thanks for your attention 🙂