[PR #34] [MERGED] Docker support #3177

Closed
opened 2026-02-22 18:33:12 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/34
Author: @frasergr
Created: 6/12/2023
Status: Merged
Merged: 6/13/2023
Merged by: @timothycarambat

Base: masterHead: 26-docker


📝 Commits (10+)

  • 49cf247 Updates for Linux for frontend/server
  • f7bb447 Merge pull request #1 from frasergr/linux-frontend-and-server
  • a94942c frontend/server docker
  • be8ab58 Merge pull request #2 from frasergr/linux-frontend-and-server
  • 95508bc updated Dockerfile for deps related to node vectordb
  • 26382bb Merge pull request #3 from frasergr/linux-frontend-and-server
  • e3ef5cd updates for collector in docker
  • ebf7b02 Merge pull request #4 from frasergr/linux-frontend-and-server
  • 425a645 docker deps for ODT processing
  • 48348a6 Merge pull request #5 from frasergr/linux-frontend-and-server

📊 Changes

32 files changed (+4921 additions, -200 deletions)

View changed files

.dockerignore (+13 -0)
📝 .gitignore (+0 -1)
📝 README.md (+2 -2)
📝 collector/main.py (+30 -41)
📝 collector/requirements.txt (+6 -123)
📝 collector/scripts/gitbook.py (+1 -1)
📝 collector/scripts/link.py (+2 -2)
📝 collector/scripts/medium.py (+1 -1)
📝 collector/scripts/substack.py (+1 -1)
📝 collector/scripts/watch/utils.py (+1 -1)
📝 collector/scripts/youtube.py (+1 -1)
docker/.env.example (+25 -0)
docker/Dockerfile (+94 -0)
docker/docker-compose.yml (+30 -0)
docker/docker-entrypoint.sh (+3 -0)
docker/docker-healthcheck.sh (+13 -0)
📝 frontend/package.json (+1 -0)
📝 frontend/src/utils/constants.js (+1 -1)
frontend/yarn.lock (+2604 -0)
📝 package.json (+1 -1)

...and 12 more files

📄 Description

#26

  • Docker related items are in ./docker/
  • Running docker-compose.yml file from the ./docker/ directory will build an image which
    • Installs system dependencies
    • Installs frontend and backend packages
    • Builds the frontend
    • Node serves the built frontend
  • The docker-compose.yml file sets up some host volumes including ./collector/hotdir/ where you can add files to process
  • Watch for local file changes: docker exec -it --workdir=/app/collector anything-llm python watch.py
  • Process document from service: docker exec -it --workdir=/app/collector anything-llm python main.py

To have this running as a single container and serving the built frontend files, I had to make some changes on the server so that the "API" routes now have a path prefix of /api (see in ./server/index.js)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/34 **Author:** [@frasergr](https://github.com/frasergr) **Created:** 6/12/2023 **Status:** ✅ Merged **Merged:** 6/13/2023 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `26-docker` --- ### 📝 Commits (10+) - [`49cf247`](https://github.com/Mintplex-Labs/anything-llm/commit/49cf2471bfcb613fa38be67b1ce5ec6112a21099) Updates for Linux for frontend/server - [`f7bb447`](https://github.com/Mintplex-Labs/anything-llm/commit/f7bb447d677a9431151b1b3e5872f3d0f315e3d9) Merge pull request #1 from frasergr/linux-frontend-and-server - [`a94942c`](https://github.com/Mintplex-Labs/anything-llm/commit/a94942c3de7eaa8dadcefab9b120a14f57006f50) frontend/server docker - [`be8ab58`](https://github.com/Mintplex-Labs/anything-llm/commit/be8ab5826b798f7d8c1990dffd52fa2f4d073ca4) Merge pull request #2 from frasergr/linux-frontend-and-server - [`95508bc`](https://github.com/Mintplex-Labs/anything-llm/commit/95508bc0c4ad17cc9e49169ab0506dda6bc86cde) updated Dockerfile for deps related to node vectordb - [`26382bb`](https://github.com/Mintplex-Labs/anything-llm/commit/26382bbe69542f137ac9a3c3b1c5108da8a53473) Merge pull request #3 from frasergr/linux-frontend-and-server - [`e3ef5cd`](https://github.com/Mintplex-Labs/anything-llm/commit/e3ef5cd830e3ef7fa4304d7cbf66df1916a4252c) updates for collector in docker - [`ebf7b02`](https://github.com/Mintplex-Labs/anything-llm/commit/ebf7b02509af420a52ec8f79c81723f847f95827) Merge pull request #4 from frasergr/linux-frontend-and-server - [`425a645`](https://github.com/Mintplex-Labs/anything-llm/commit/425a645d04b5b13f1abc2b114b2f9944f8e3cf0d) docker deps for ODT processing - [`48348a6`](https://github.com/Mintplex-Labs/anything-llm/commit/48348a6cca224368dbaf4608d4b1e5c201aad0ad) Merge pull request #5 from frasergr/linux-frontend-and-server ### 📊 Changes **32 files changed** (+4921 additions, -200 deletions) <details> <summary>View changed files</summary> ➕ `.dockerignore` (+13 -0) 📝 `.gitignore` (+0 -1) 📝 `README.md` (+2 -2) 📝 `collector/main.py` (+30 -41) 📝 `collector/requirements.txt` (+6 -123) 📝 `collector/scripts/gitbook.py` (+1 -1) 📝 `collector/scripts/link.py` (+2 -2) 📝 `collector/scripts/medium.py` (+1 -1) 📝 `collector/scripts/substack.py` (+1 -1) 📝 `collector/scripts/watch/utils.py` (+1 -1) 📝 `collector/scripts/youtube.py` (+1 -1) ➕ `docker/.env.example` (+25 -0) ➕ `docker/Dockerfile` (+94 -0) ➕ `docker/docker-compose.yml` (+30 -0) ➕ `docker/docker-entrypoint.sh` (+3 -0) ➕ `docker/docker-healthcheck.sh` (+13 -0) 📝 `frontend/package.json` (+1 -0) 📝 `frontend/src/utils/constants.js` (+1 -1) ➕ `frontend/yarn.lock` (+2604 -0) 📝 `package.json` (+1 -1) _...and 12 more files_ </details> ### 📄 Description #26 - Docker related items are in `./docker/` - Running `docker-compose.yml` file from the `./docker/` directory will build an image which - Installs system dependencies - Installs frontend and backend packages - Builds the frontend - Node serves the built frontend - The `docker-compose.yml` file sets up some host volumes including `./collector/hotdir/` where you can add files to process - Watch for local file changes: `docker exec -it --workdir=/app/collector anything-llm python watch.py` - Process document from service: `docker exec -it --workdir=/app/collector anything-llm python main.py` To have this running as a single container and serving the built frontend files, I had to make some changes on the server so that the "API" routes now have a path prefix of /api (see in `./server/index.js`) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:33:12 -05:00
yindo closed this issue 2026-02-22 18:33:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3177