Skip to content
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

What can I change to mount the postgres and redis on a different drive? #382

Open
nickjuntilla opened this issue Feb 13, 2025 · 1 comment

Comments

@nickjuntilla
Copy link

Is there a way to modify this to save the posgres data on a different volume?

I tried to change the lines in the dockercompose file to

volumes:

  • altmount/.nostr/data:/var/lib/postgresql/data

  • altmount/.nostr/db-logs:/var/log/postgresql

  • altmount/postgresql.conf:/postgresql.conf

Then I just keep getting

nostream-db | 2025-02-13 19:11:50.359 GMT [1] LOG: input in flex scanner failed at file "/postgresql.conf" line 1

nostream-db | 2025-02-13 19:11:50.359 GMT [1] FATAL: configuration file "/postgresql.conf" contains errors

I fixed the missing conf file message by just switching it back to PWD but now I get

nostream-migrate | no pg_hba.conf entry for host "10.10.10.4", user "nostr_ts_relay", database "nostr_ts_relay", no encryption

nostream-migrate | error: no pg_hba.conf entry for host "10.10.10.4", user "nostr_ts_relay", database "nostr_ts_relay", no encry

Do I have to use the boot drive for all the data? It's only 10 GB and my mounted drive is 100GB

@nickjuntilla
Copy link
Author

Ok I solved this by just mounting my new volume to the nostream/.nostr directory

Let me know if this seems right. Is that were most of the data is being stored? Is this a bad way of doing it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant