Quartz static site generator running in docker ( multi arch fork of - shommey/dockerized-quartz )
8.0K
Quartz (v4) is a lightweight static site generator that helps you host your digital garden. This project provides an automated, dockerized solution to build and serve Quartz sites with minimal configuration.
nginx.conf.| Variable | Description | Default |
|---|---|---|
GIT_REPO | The git repository to clone for your Quartz site. | https://github.com/jackyzha0/quartz.git |
GIT_BRANCH | The branch to checkout from the git repository. | v4 |
BUILD_UPDATE_DELAY | The delay in seconds after which Quartz will rebuild when changes are detected in the vault. | 300 |
AUTO_REBUILD | Enable or disable automatic rebuilding of Quartz when changes are detected in the vault. | true |
REBUILD_WEBHOOK_SECRET | The secret to use for the webhook trigger. If not set, the webhook server will not be started. | |
NOTIFY_TARGET | The target for notifications. See Apprise for supported notification services. | |
BASIC_AUTH_USERNAME | The username for basic authentication. | |
BASIC_AUTH_PASSWORD | The password for basic authentication. | |
CRON_JOB | A cron expression to trigger a rebuild of the site. |
To quickly get started with Quartz in Docker:
git clone https://github.com/shommey/dockerized-quartz.git
cd dockerized-quartz
docker-compose.ymlCopy the provided example:
cp docker-compose.yml.example docker-compose.yml
You must update the volume path to your Obsidian vault.
version: '3.8'
services:
quartz:
image: vasujain275/dockerized-quartz
container_name: quartz-notes
environment:
# Use your custom Quartz repo or leave blank for the default Quartz repo
# GIT_REPO: "https://github.com/yourusername/your-quartz-site.git"
# Optional: specify a branch to checkout
# GIT_BRANCH: "v4"
# Optional: Update delay after which quartz build will trigger, default 300 seconds
BUILD_UPDATE_DELAY: 900
# Optional: Auto rebuild Quartz after change in Obsidian Vault
AUTO_REBUILD: true
volumes:
# Mount your Obsidian vault for Quartz to read and build the site from
- /path/on/host:/vault:ro
# Optional: Mount existing Quartz repo
# - /path/on/host:/usr/src/app/quartz
# Optional: Persist nginx logs if needed
# - /path/to/nginx/logs:/var/log/nginx
# Optional: Mount nginx conf
# - /path/on/host:/etc/nginx
ports:
# Map any port on the host to port 80 in the container for web access
- "80:80"
restart: unless-stopped
docker compose up -d
Access your Quartz site on http://<YOUR_MACHINE_IP>:<PORT>
Content type
Image
Digest
sha256:88b3bff12…
Size
158.8 MB
Last updated
about 1 year ago
docker pull vasujain275/dockerized-quartz