From ee9150c2711e3c088306be65b96dbdb0d31066da Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Thu, 7 Mar 2024 19:21:57 +0100 Subject: [PATCH] add compose file --- README.md | 3 +++ compose.yml | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 compose.yml diff --git a/README.md b/README.md index 3770f8b..946d2e6 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,9 @@ Pipeline successfully undeployed ## Docker setup +> [!TIP] +> If you have docker-compose installed and you want to quickly get up and running, just do `docker-compose up -d` + Instead of launching the server in a separate shell like we did in the Quick Start, you can run it in a Docker container : diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..28f633a --- /dev/null +++ b/compose.yml @@ -0,0 +1,13 @@ +services: + hayhooks: + image: deepset/hayhooks:main + container_name: hayhooks + ports: + - '1416:1416' + volumes: + - ./tests/test_files:/opt/pipelines + healthcheck: + test: ["CMD-SHELL", "curl --silent --fail localhost:1416/status || exit 1"] + interval: 10s + timeout: 10s + retries: 3 \ No newline at end of file