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