nostream icon indicating copy to clipboard operation
nostream copied to clipboard

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

Open nickjuntilla opened this issue 11 months ago • 1 comments

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 avatar Feb 13 '25 19:02 nickjuntilla

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?

nickjuntilla avatar Feb 13 '25 19:02 nickjuntilla