From b78936802548a49e7029a03af60ebc510d8508b5 Mon Sep 17 00:00:00 2001 From: Kevin BEAUGRAND <9513635+kbeaugrand@users.noreply.github.com> Date: Sat, 10 Sep 2022 13:31:35 +0200 Subject: [PATCH] Fix #1193 - Persist postgreSQL database for local development --- src/docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/docker-compose.yml b/src/docker-compose.yml index 12934beb6..1a1579538 100644 --- a/src/docker-compose.yml +++ b/src/docker-compose.yml @@ -8,6 +8,8 @@ services: POSTGRES_PASSWORD: postgrePassword ports: - 5432:5432 + volumes: + - pgdata:/var/lib/postgresql/data azureiothub.portal.server: image: ${DOCKER_REGISTRY-}azureiothubportalserver build: @@ -15,3 +17,5 @@ services: dockerfile: AzureIoTHub.Portal/Server/Dockerfile depends_on: - "database" +volumes: + pgdata: