-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config fix for postgres docker defaults #183
Conversation
Taking a quick look, I think we may run into issues with the
The playbooks are distributing the postgres configuration with Could you fix this in your PR? EDIT I realized you might have been coming from the primary project, which references this Good luck with the move! |
Happy to do it, while I don't deploy lemmy this way (I just happened to notice it) I'm prretty familiar with ansible. I'll knock it out after the move. And thanks! |
…es` user can read it - Refs LemmyNet#183 - Refs comment LemmyNet#183 (comment)
Co-authored-by: Dessalines <tyhou13@gmx.com>
…es` user can read it - Refs LemmyNet#183 - Refs comment LemmyNet#183 (comment)
Co-authored-by: Dessalines <tyhou13@gmx.com>
…es` user can read it - Refs LemmyNet#183 - Refs comment LemmyNet#183 (comment)
Default Docker configurations in Alpine have a different override path, which causes problems if people switch to the Ansible deployment.
Reproduction of the issue:
/etc/postgresql.conf
SHOW config_file
to see the location of the config file (it will be in/var/lib/data
)/etc/postgresql.conf
SHOW config_file
to see the location of the config file (it will still be in/var/lib/data
)Also, official docker instructions for Postgres is to use
/etc/postgresql/postgresql.conf
, though this is irrelevant given this PR.To force the use of
/etc/postgresql.conf
for if users switch from bare mode to Ansible, the compose file was edited to include a forcedcommand
.In addition, the default for PG15 alpine
listen_address
islocalhost
, not*
, which is required for thelemmy
container to connect. This default is overwritten by the docker container normally, but is not included in the tuning samples provided.NOTE: It is highly possible there are a number of smaller self-hosted instances who have no idea their poor performance is because PG is not properly tuned, as the defaults are pretty meager.