Fix example postgres docker-compose setup in docs (#1998)

* Fix example postgres docker-compose setup in docs
Add a local volume to postgres container so changes get persisted between restarts

* Fix linked volume in postgres doc
This commit is contained in:
Sören 2023-01-08 04:21:42 +01:00 committed by GitHub
parent da5b87950f
commit 5e97c32e68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -55,6 +55,8 @@ services:
container_name: postgres container_name: postgres
image: postgres image: postgres
restart: always restart: always
volumes:
- mealie-pgdata:/var/lib/postgresql
environment: environment:
POSTGRES_PASSWORD: mealie POSTGRES_PASSWORD: mealie
POSTGRES_USER: mealie POSTGRES_USER: mealie
@ -62,6 +64,8 @@ services:
volumes: volumes:
mealie-data: mealie-data:
driver: local driver: local
mealie-pgdata:
driver: local
``` ```
<!-- Updating This? Be Sure to also update the SQLite Annotations --> <!-- Updating This? Be Sure to also update the SQLite Annotations -->

File diff suppressed because one or more lines are too long