[GH-ISSUE #3998] How to Run AnythingLLM on Railway and Be Able To Edit Files? #2542

Closed
opened 2026-02-22 18:30:08 -05:00 by yindo · 2 comments
Owner

Originally created by @rthidden on GitHub (Jun 13, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3998

Hello,

I want to use AnythingLLM on Railway and be able to edit configuration files like for MCP servers.

I did a search in the issues open and closed for a similar situation and did not see anything but may have missed something.

I have tried cloning the AnythingLLM Repo and then pushing the new repo to Railway using:

  • RAILWAY_DOCKERFILE_PATH
  • railway.json
  • nixpacks.toml

I get build or deploy errors using these methods.

What is the best way to use AnythingLLM on Railway and be able to edit configuration files like for MCP servers?

Thanks,
Ryan

Originally created by @rthidden on GitHub (Jun 13, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3998 Hello, I want to use AnythingLLM on Railway and be able to edit configuration files like for MCP servers. I did a search in the issues open and closed for a similar situation and did not see anything but may have missed something. I have tried cloning the AnythingLLM Repo and then pushing the new repo to Railway using: - RAILWAY_DOCKERFILE_PATH - railway.json - nixpacks.toml I get build or deploy errors using these methods. What is the best way to use AnythingLLM on Railway and be able to edit configuration files like for MCP servers? Thanks, Ryan
yindo closed this issue 2026-02-22 18:30:08 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jun 13, 2025):

The easiest way is not to edit or making a new image - MCP files exist in the storage directry which you cannot copy into the image via Docker (at least for how our base docker image works).

In Railway, just add another server to the environement like https://railway.com/deploy/Nan7Bs so you can see the files mounted in the storage directory /storage folder. In there you can add/edit the MCP config file.

@timothycarambat commented on GitHub (Jun 13, 2025): The easiest way is not to edit or making a new image - MCP files exist in the storage directry which you cannot copy into the image via Docker (at least for how our base docker image works). In Railway, just add another server to the environement like https://railway.com/deploy/Nan7Bs so you can see the files mounted in the storage directory `/storage` folder. In there you can add/edit the MCP config file.
Author
Owner

@rthidden commented on GitHub (Jun 13, 2025):

Ok, I used the AnythingLLM template on Railway.com then added the File Browser service.

How do I connect the two?

Do I need to change the STORAGE_DIR on the AnythingLLM service?

Image

Should I not use the template on the Railway site and instead edit the docker-compose.yml file to change these fields:

  • STORAGE_DIR=/app/server/storage
  • volumes:
    - anythingllm_storage:/app/server/storage
  • device: /path/on/local/disk

If so, what should they be changed to?

Thanks

@rthidden commented on GitHub (Jun 13, 2025): Ok, I used the AnythingLLM template on Railway.com then added the File Browser service. How do I connect the two? Do I need to change the STORAGE_DIR on the AnythingLLM service? ![Image](https://github.com/user-attachments/assets/4fff26f6-2959-4189-9eb5-8eddbe19569d) Should I not use the template on the Railway site and instead edit the docker-compose.yml file to change these fields: - STORAGE_DIR=/app/server/storage - volumes: - anythingllm_storage:/app/server/storage - device: /path/on/local/disk If so, what should they be changed to? Thanks
yindo changed title from How to Run AnythingLLM on Railway and Be Able To Edit Files? to [GH-ISSUE #3998] How to Run AnythingLLM on Railway and Be Able To Edit Files? 2026-06-05 14:47:08 -04: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#2542