| title | Docker |
|---|---|
| description | Run Chronicle with Docker. |
| order | 8 |
Chronicle is available as a Docker image on Docker Hub.
docker pull raystack/chronicleThe default command builds and starts a production server on port 3000.
docker run -p 3000:3000 -v ./content:/docs/content raystack/chronicleMount your content directory (containing MDX files) to /docs/content. Place chronicle.yaml in the content directory or it will use defaults.
Override the default command with dev for hot reload:
docker run -p 3000:3000 -v ./content:/docs/content raystack/chronicle dev --port 3000docker run -p 8080:8080 -v ./content:/docs/content raystack/chronicle serve --port 8080services:
docs:
image: raystack/chronicle
ports:
- "3000:3000"
volumes:
- ./content:/docs/contentThe entrypoint is chronicle, so any CLI command can be passed:
# Build only
docker run -v ./content:/docs/content raystack/chronicle build
# Start pre-built server
docker run -p 3000:3000 -v ./content:/docs/content raystack/chronicle start --port 3000
# Build and start (default)
docker run -p 3000:3000 -v ./content:/docs/content raystack/chronicle serve --port 3000