This guide explains how to run the Quix documentation locally using Docker Compose. This is an alternative to the native installation method described in RUNNING-DOCS-LOCALLY.md.
- Docker installed on your system
- Docker Compose installed on your system
- Git client (for cloning the repository)
-
Clone the repository:
git clone https://github.com/quixio/quix-docs.git cd quix-docs
-
Make the browser script executable:
chmod +x open-browser.sh
-
Start the documentation server:
docker compose up --build & ./open-browser.sh
Or to run in detached mode:
docker compose up -d --build && ./open-browser.sh
-
The documentation will automatically open in your default browser at
http://localhost:8000/docs/
-
Start in detached mode (runs in background):
docker compose up -d --build && ./open-browser.sh
-
Stop the service:
docker compose down
-
View logs:
docker compose logs -f
-
Rebuild the service:
docker compose build
-
Force rebuild and start:
docker compose up --build
- Live reload: Changes to documentation are reflected in real-time
- Automatic restart: Service restarts automatically on failure
- Volume mounting: Local directory is mounted for immediate updates
- Log streaming: View logs in real-time with
docker compose logs -f
- Automatic browser opening: Documentation opens in your default browser
If you encounter issues:
-
Port conflicts:
# Check if port 8000 is in use lsof -i :8000 # Or on Windows: netstat -ano | findstr :8000
-
Docker resource issues:
# Check Docker system resources docker system df docker system prune # Clean up unused resources
-
Build issues:
# Clean build with no cache docker compose build --no-cache # Remove all containers and images docker compose down --rmi all
-
Permission issues:
# Ensure Docker has proper permissions sudo usermod -aG docker $USER # Log out and back in for changes to take effect
-
Network issues:
# Check Docker network docker network ls # Inspect network configuration docker network inspect quix-docs_default
-
Service health:
# Check service status docker compose ps # View service logs docker compose logs