From f75b7fc9291830767692609cf1ad1536f34d6109 Mon Sep 17 00:00:00 2001 From: Dustin Decker Date: Thu, 26 Jan 2023 16:47:01 -0800 Subject: [PATCH] local pgdata --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index ee874af..6a3f3d3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,6 +18,7 @@ services: restart: always user: postgres environment: + PGDATA: /var/lib/postgresql/data/pgdata POSTGRES_PASSWORD: postgres POSTGRES_HOST_AUTH_METHOD: trust healthcheck: @@ -25,3 +26,5 @@ services: interval: 3s timeout: 5s retries: 5 + volumes: + - ./postgres-db-data:/var/lib/postgresql/data/pgdata