Infrastructure-as-code living documentation for Terraform, Docker, and Ansible
96
SyncDoc is an infrastructure-as-code (IaC) documentation tool that generates living documentation from your Terraform, Docker, Ansible, and Git configurations. This is the open-source, self-hosted version.
git clone https://github.com/syncdoc-dev/syncdoc-free.git
cd syncdoc-free
# Copy environment file and set a strong JWT secret
cp .env.example .env
export JWT_SECRET_KEY="$(openssl rand -hex 32)"
# Start the stack
docker compose up -d
# Wait for migrations (~10s), then open
docker compose logs -f api
open http://localhost:5173 # macOS
xdg-open http://localhost:5173 # Linux
The development stack exposes:
If you want to expose ports directly without a reverse proxy:
cp .env.example .env
export JWT_SECRET_KEY="$(openssl rand -hex 32)"
docker compose -f docker-compose.simple.yml up -d
This uses syncdocdev/syncdoc-api:latest and syncdocdev/syncdoc-frontend:latest from Docker Hub.
For deployments with an existing Traefik instance:
cp .env.example .env
# Set PROD_FRONTEND_URL and PROD_BACKEND_URL in .env
docker compose -f docker-compose.prod.yml up -d
To enable AI-powered documentation generation and semantic search, add your LLM API key:
LLM_PROVIDER=openai # or "anthropic"
LLM_API_KEY=sk-your-key-here
LLM_MODEL=gpt-4o
AI features are gracefully disabled if no API key is provided.
To enable GitHub login:
http://localhost:8000/api/auth/github/callback.env:GH_CLIENT_ID=your-client-id
GH_CLIENT_SECRET=your-client-secret
See docs/LOCAL_SETUP.md for local development setup without Docker.
We welcome contributions! Please open an issue or pull request on GitHub.
Content type
Image
Digest
sha256:eb9c0d7d4…
Size
258.4 MB
Last updated
4 months ago
docker pull syncdocdev/syncdoc-api-cpuv1:sha-decccb7