6 months ago
What's the best/recommended way to modify the Postgres config on Railway (ideally, without creating a custom image)?
19 Replies
6 months ago
In what ways would you be looking to customize it?
6 months ago
You can't directly edit the postgresql.conf file (Maybe through SSH but definitely not recommended)
6 months ago
Can that be sent as a psql command or set through env vars?
6 months ago
Was looking into all that env vars can do yeah, I've had some people customize them through those
wouldn't be persisted over a restart, which is required after modifyng the config
6 months ago
True, so unfortunately a custom image is the best option here
6 months ago
looking through this but yeah https://hub.docker.com/_/postgres
custom image is the best bet
I wonder if there could be some middle ground where it has a startup script that writes a config to the disk on startup, from an environment variable
6 months ago
Yeah that sounds like it would be helpful here but no clue if Railway supports doing that
6 months ago
6 months ago
brody to the rescue
6 months ago
!s
Status changed to Solved medim • 6 months ago