Skip to content

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

@nickjuntilla

Description

@nickjuntilla

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions