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: