modernleft-docs/Applications/quartz-docker.md

38 lines
1.1 KiB
Markdown
Raw Normal View History

2025-01-17 02:28:51 +00:00
---
title: quartz-docker
draft: false
date: 2025-01-16
---
2025-01-17 03:07:26 +00:00
# 📄 quartz-docker
2025-01-17 15:45:13 +00:00
[quartz-docker image](https://code.modernleft.org/gravityfargo/-/packages/container/quartz-docker/v4.4.0)
2025-01-17 15:48:51 +00:00
2025-01-17 03:07:26 +00:00
This project runs **Quartz 4**, a fast, batteries-included static site generator, inside a **Docker container**. It transforms Markdown content into a fully functional website.
## 🚀 Features
2025-01-17 15:45:13 +00:00
- configurable with environment variables
2025-01-17 15:59:26 +00:00
- node and nginx included
2025-01-17 15:48:51 +00:00
- configurable cron for job to pull and build site
2025-01-17 03:07:26 +00:00
## 🛠️ Getting Started
2025-01-17 15:50:09 +00:00
### Docker Compose
2025-01-17 03:07:26 +00:00
2025-01-17 03:16:22 +00:00
See a list of all Environment Variables [[environment variables|here.]]
2025-01-17 15:59:26 +00:00
2025-01-17 15:55:13 +00:00
1. Create a data directory and pull your existing content
2025-01-17 15:59:26 +00:00
```bash
git clone https://code.modernleft.org/gravityfargo/modernleft-docs.git quartz
```
2025-01-17 15:55:13 +00:00
2. Create a `docker-compose.yml` file
2025-01-17 16:01:02 +00:00
![[minimal docker-compose]]
2025-01-17 15:59:26 +00:00
The only required variable is `BASE_URL`. The rest are set to the developer's [defaults](https://quartz.jzhao.xyz/configuration) `BASE_URL` sets both quartz's "baseUrl" as well as nginx's `server_name`.
2025-01-17 15:25:13 +00:00
### Cron
2025-01-17 03:07:26 +00:00
2025-01-17 15:59:26 +00:00
![[cron]]