adjusting path where the database file is saved, so the data persists after reboot
This commit is contained in:
parent
2b177aad5b
commit
068949b4cb
1 changed files with 2 additions and 0 deletions
|
|
@ -4,6 +4,8 @@ services:
|
||||||
image: postgres:18.3-alpine3.23
|
image: postgres:18.3-alpine3.23
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
environment:
|
||||||
|
- PGDATA=/var/lib/postgresql/data
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue