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