Yet more generic. More docs

This commit is contained in:
Dan Milne
2025-02-19 19:16:03 +11:00
parent ce9b79f612
commit 378edd8f8b
2 changed files with 6 additions and 1 deletions

View File

@@ -2,6 +2,8 @@
This Compose project will let you run multiple database within one PostgreSQL container. It's based on (Cristian Angulo)[https://dev.to/nietzscheson/multiples-postgres-databases-in-one-service-with-docker-compose-4fdf]'s post on the subject.
The original version creates users per database, with the same name as teh database. This version sets the password for the users created to that of the postgres user.
It also starts up a PGBouncer.
## ENV file
@@ -23,6 +25,9 @@ In the compose.yaml, you'll see `postgresql.${HOST_KIND}.conf`. This lets you ha
### POSTGRES_PASSWORD
Used to set the `postgres` user's password
### POSTGRES_MULTIPLE_DATABASES
Set the `POSTGRES_MULTIPLE_DATABASES` value in `compose.yaml` to a series of comma separated database names.
## Data directory
If you're using this for Cache, per SolidCache, you may be happy to use named bind mountings and let Docker manage storage.