This is what an AI/RAG pipeline sees when it indexes this page — the same output served at https://camelmind-docs.vercel.app/api/llms/deployment/docker-self-hosting.Back to doc
Rendered doc
Docker Self-Hosting
Build and deploy your CamelMind documentation site using Docker.
CamelMind includes a production-ready Dockerfile and docker-compose.yml, making it easy to deploy your documentation site on your own infrastructure.
Docker deployments are ideal for on-premises environments, private clouds, Kubernetes clusters, and air-gapped networks.
Build and run the Docker image
To build and run the Docker image for your documentation site, execute the following command from your project root:
docker build -t my-docs .
Run the container:
docker run --rm \
--env-file .env \
-p 3000:3000 \
my-docs
Open your documentation site at:
http://localhost:3000
Copy .env.example to .env and update it with your site's configuration before starting the container.
Using Docker Compose
Start the site with Docker Compose:
docker compose up --build
CamelMind automatically reads environment variables from .env.
Configure your site
Configure authentication, your public site URL, and other runtime settings in .env.
For a complete list of supported variables, see Environment Variables.
Update documentation without rebuilding
During development, you can mount your documentation files into the container to see changes without rebuilding the image.
docker run --rm \
-p 3000:3000 \
--env-file .env \
-v "$(pwd)/content:/app/content" \
-v "$(pwd)/nav:/app/nav" \
my-docs
If you're using Docker Compose, uncomment the volumes section in docker-compose.yml to enable the same behavior.
Deploy Docker to production
To deploy your Docker container to production, place a reverse proxy such as Nginx, Caddy, or Traefik in front of the CamelMind container to provide HTTPS and TLS termination. Also ensure that:
- Set
CAMELMIND_URLto your public HTTPS URL. - Your reverse proxy forwards requests to the CamelMind container.
- Container health checks target
/home.
Next steps for Docker self-hosting
After you deploy your container, you can complete these next steps:
- Configure your site's Environment Variables.
- Set up Authentication for protected documentation sites.
- Deploy the container to your preferred hosting platform or Kubernetes cluster.
What the AI sees
Issues (0)
No AI-friendliness issues found.