From 60eb71a53120f32e0af2ac193858b0e2b65b1027 Mon Sep 17 00:00:00 2001 From: Mohamed Marrouchi Date: Sun, 27 Oct 2024 19:31:41 +0100 Subject: [PATCH] fix: add nlu data volume --- docker/docker-compose.nlu.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docker/docker-compose.nlu.yml b/docker/docker-compose.nlu.yml index 9f5383a..e715c7c 100644 --- a/docker/docker-compose.nlu.yml +++ b/docker/docker-compose.nlu.yml @@ -3,7 +3,7 @@ version: "3.9" services: api: networks: - - nlp-network + - nlu-network depends_on: nlu-api: condition: service_healthy @@ -13,7 +13,9 @@ services: image: hexastack/hexabot-nlu:latest env_file: .env networks: - - nlp-network + - nlu-network + volumes: + - nlu-data:/app/repos healthcheck: test: curl --fail http://localhost:5000/health || exit 1 interval: 10s @@ -21,5 +23,8 @@ services: retries: 5 start_period: 10s +volumes: + nlu-data: + networks: - nlp-network: + nlu-network: