local pgdata

This commit is contained in:
Dustin Decker 2023-01-26 16:47:01 -08:00
parent 7fc28b13a3
commit f75b7fc929

View file

@ -18,6 +18,7 @@ services:
restart: always restart: always
user: postgres user: postgres
environment: environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
healthcheck: healthcheck:
@ -25,3 +26,5 @@ services:
interval: 3s interval: 3s
timeout: 5s timeout: 5s
retries: 5 retries: 5
volumes:
- ./postgres-db-data:/var/lib/postgresql/data/pgdata