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: