How do I create a template from the following Docker files?
Dockerfile
docker-compose.yml
18 Replies
can you help me to understand this? the dockerfile is for postgres and the docker compose file also deploys postgres?
I'm installing a supbase postgres extension called pg_net
There are some steps required to get installed, which is installing packages, cloning the git repo and actually installing it
Then we have to set these values
shared_preload_libraries = pg_net
pg_net.database_name = ${POSTGRES_DB}
Then we run this command CREATE EXTENSION IF NOT EXISTS pg_net;
And that's all
in the docker compose file it looks like a pre-built image for that already exists, why not just deploy the standard postgres database on railway and then swap it's source image for your desired image?
Basically beecause I have the run this compose
postgres -c shared_preload_libraries=pg_net -c pg_net.database_name=${POSTGRES_DB} -c max_connections=200
Which I'm currently running in my docker composewhat's stopping you from put that as the start command?
Hi so I did this and app has been deploying for 5 minutes
Logs are empty
Here's a link to the image https://hub.docker.com/r/babkum/postgres-essentials
And a link to the Github repository https://github.com/babkum/postgres-essentials
GitHub
GitHub - Babkum/postgres-essentials: A postgres image with some ext...
A postgres image with some extensions built-in. Contribute to Babkum/postgres-essentials development by creating an account on GitHub.
show me what you changed after deploying the standard postgres database
Ok I took a different approach now, you can check the same repo
Application is deploying and starting fine now but can't connect
I'm not sure but I think it's a common issue
How can I fix it?
the tcp proxy most certainly isn't using port 5432
Ok I tried the other port and didn't work
The other port being the one in the env
this screenshot is cut off
did you really open 7 duplicate threads?
Oh no I think it’s a bug. I clicked on Submit, I didn’t get any feedback and the pop up was still open
So I thought I had network issues
That’s where the error is
interesting, alright fair enough I can't blame you for that then haha