From 097e5a246c3aeee891885bc87045427ef95ee6be Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Sat, 20 Jul 2019 11:27:52 -0600 Subject: [PATCH] Use a volume for postgres data in docker-compose.dev.yml --- docker-compose.dev.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 95b0e47..2677c85 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -40,5 +40,10 @@ services: image: "postgres:11" ports: - "5432:5432" + volumes: + - data-volume:/var/lib/postgres/data environment: - POSTGRES_PASSWORD=8JN4w0UsN5dbjMjNvPe452P2yYOqg5PV + +volumes: + data-volume: \ No newline at end of file