From eab6a07ffafdaa06e9cd1c29da6c455ff80020ce Mon Sep 17 00:00:00 2001 From: Piergiorgio Lucidi Date: Fri, 3 Dec 2021 16:08:16 +0100 Subject: [PATCH] fix for restart using Docker Compose: added local Docker volumes for Elasticsearch and PostgreSQL --- docker/docker-compose-postgres.yaml | 6 ++++++ docker/docker-compose.yaml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/docker/docker-compose-postgres.yaml b/docker/docker-compose-postgres.yaml index 71ffdbf2f4..74bcf0fa31 100644 --- a/docker/docker-compose-postgres.yaml +++ b/docker/docker-compose-postgres.yaml @@ -15,6 +15,8 @@ services: environment: - POSTGRES_USER=conductor - POSTGRES_PASSWORD=conductor + volumes: + - pgdata-conductor:/var/lib/postgresql/data networks: - internal ports: @@ -30,5 +32,9 @@ services: max-size: "1k" max-file: "3" +volumes: + pgdata-conductor: + driver: local + networks: internal: diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index ff9a5fc55c..8b665b09f3 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -50,6 +50,8 @@ services: - transport.host=0.0.0.0 - discovery.type=single-node - xpack.security.enabled=false + volumes: + - esdata-conductor:/usr/share/elasticsearch/data networks: - internal ports: @@ -66,5 +68,9 @@ services: max-size: "1k" max-file: "3" +volumes: + esdata-conductor: + driver: local + networks: internal: