Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set up the postgres containers properly
I just learned this is how you're actually supposed to do it in order to mimic a real deployment as closely as possible. If you read the documentation for this docker image, you'll find that the user created via `POSTGRES_USER` has `SUPERUSER` rights. Generally, real deployments don't and shouldn't have this set for the database user of random services (such as Lemmy). The proper way to do this is to use the defaults and add an init script that adds the actual service user and database to this specific directory. This results in the Lemmy service user not having `SUPERUSER`, which ensures that future migrations aren't written with the concerning assumption that people will grant it `SUPERUSER` rights.
- Loading branch information