diff --git a/lemmy/postgresql-template.xml b/lemmy/postgresql-template.xml new file mode 100644 index 0000000..8eb321b --- /dev/null +++ b/lemmy/postgresql-template.xml @@ -0,0 +1,48 @@ + + + Lemmy-Postgres + pgautoupgrade/pgautoupgrade:16-alpine + https://hub.docker.com/r/pgautoupgrade/pgautoupgrade/ + bridge + sh + false + + https://github.com/LemmyNet/lemmy/discussions + https://www.postgresql.org/ + PostgreSQL database for Lemmy with auto-upgrade support. + Productivity: Tools: + https://www.postgresql.org/media/img/about/press/elephant.png + + + + + + + + + + --auth-host=scram-sha-256 + + + + + /mnt/user/appdata/lemmy/postgres + /var/lib/postgresql/data + rw + + + + PostgreSQL database configured for Lemmy with the following features: +- Automatic upgrades +- Performance tuning +- Query analysis logging + +Configuration: +1. Set secure database credentials +2. Update the credentials in Lemmy's configuration +3. Choose a different port if 5433 is in use + +Note: This container should be started first before other Lemmy components. + + -c "session_preload_libraries=auto_explain" -c "auto_explain.log_min_duration=5ms" -c "auto_explain.log_analyze=true" -c "auto_explain.log_triggers=true" -c "track_activity_query_size=1048576" + \ No newline at end of file