LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
Add optional docker services (#42)
Hari John Kuriakose38682d758ca8
diff --git a/docker/README.md b/docker/README.mdindex 6641ec495..a30b29c4d 100644--- a/docker/README.md+++ b/docker/README.md@@ -1,34 +1,37 @@-# DOCKER BUILD-We can build the dockers locally using the below command+# Docker Build-```-VERSION=test docker compose -f docker-compose.build.yaml build+```bash+# Build all services+VERSION=dev docker compose -f docker-compose.build.yaml build++# Build a specific service alone+VERSION=dev docker compose -f docker-compose.build.yaml build frontend```-Here `VERSION` env will be the docker tag version we need to use. For local testing we can pass any value. We can use the same compose files for building and publishing our dockers in our CI/CD systems as well.+# Docker Run-If some one needs to build only one of the services they can do it by running build for that alone+**NOTE**: First copy `sample.*.env` files to `*.env` and update as required.-Eg:-+```bash+# Up all services+VERSION=dev docker compose -f docker-compose.yaml up -d-```-VERSION=test docker compose -f docker-compose.build.yaml build frontend+# Up a specific service alone+VERSION=dev docker compose -f docker-compose.yaml up -d frontend```-# DOCKER RUN+Now access frontend at http://frontend.unstract.localhost-NOTE: copy sample.*.env files into *.env and make required changes in it before running `docker compose up`+# Docker Run Optional Services-We can use the `docker compose up` command to run all the required services. Make sure build is done before the run and to use the same `VERSION`.+Some services are kept optional and will not be started by default. Run them as follows.+```bash+# Up optional services.+VERSION=dev docker compose -f docker-compose.yaml --profile optional up -d```-VERSION=test docker compose -f docker-compose.yaml up -d-```--Now you should be able to access your frontend at http://frontend.unstract.localhost--# `src` FOLDER LAYOUT AND `gunicorn`+# `src` Folder Layout and `gunicorn`For the following project structure:diff --git a/docker/docker-compose-dev-essentials.yaml b/docker/docker-compose-dev-essentials.yamlindex d52230ee0..ad6bc3ffd 100644--- a/docker/docker-compose-dev-essentials.yaml+++ b/docker/docker-compose-dev-essentials.yaml@@ -93,6 +93,8 @@ services:- traefik.http.services.feature-flag.loadbalancer.server.port=8080unstract-io:+ profiles:+ - optionalimage: downloads.unstructured.io/unstructured-io/unstructured-api:0.0.61container_name: unstract-unstructured-ioports: # Forwarded to available host ports