vault backup: 2025-01-17 20:18:34
This commit is contained in:
parent
f83d404abe
commit
6633d7a2eb
2 changed files with 11 additions and 16 deletions
|
@ -10,21 +10,13 @@ date: 2025-01-16
|
|||
docker pull code.modernleft.org/gravityfargo/quartz-docker:v4.4.0
|
||||
```
|
||||
|
||||
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.
|
||||
This project runs **Quartz 4.4.0**, a fast, batteries-included static site generator, inside a **Docker container**. It transforms Markdown content into a fully functional website.
|
||||
|
||||
While Quartz provides [Docker support](https://quartz.jzhao.xyz/features/Docker-Support), it is not as self contained as this project.
|
||||
|
||||
I explored several alternative approaches for configuration within this container, but none met my criteria for simplicity—specifically, avoiding the need to mount the entire site source and instead only requiring a dedicated `content` and `config` directory.
|
||||
|
||||
## 🚀 Features
|
||||
|
||||
- **Easy Configuration** – Customize settings using a json file
|
||||
- **Automated Site Updates** – Configurable cron job to fetch and rebuild content
|
||||
|
||||
## 🐳 Docker Compose Setup
|
||||
|
||||
### Prepare Data Directories
|
||||
|
||||
Create a data directory and pull your existing content
|
||||
|
||||
```bash
|
||||
|
|
|
@ -1,15 +1,18 @@
|
|||
```yaml
|
||||
services:
|
||||
quartz-wiki:
|
||||
container_name: quartz-wiki
|
||||
hostname: quartz-wiki
|
||||
image: code.modernleft.org/gravityfargo/quartz-docker:v4.4.0
|
||||
quartz-docker:
|
||||
container_name: quartz-docker
|
||||
image: code.modernleft.org/gravityfargo/quartz-docker:dev
|
||||
ports:
|
||||
- 80:80
|
||||
- 80:8080
|
||||
environment:
|
||||
USER_ID: 1000
|
||||
GROUP_ID: 1001
|
||||
NGINX_PORT: 8080
|
||||
SERVER_NAME: "docs.modernleft.org"
|
||||
ENABLE_CRON: "true"
|
||||
BUILD_SCHEDULE: "*/10 * * * *"
|
||||
BUILD_SCHEDULE: "*/30 * * * *"
|
||||
CONTENT_REPO: "https://code.modernleft.org/gravityfargo/modernleft-docs.git"
|
||||
volumes:
|
||||
- /srv/quartz/content:/quartz
|
||||
- ./quartz:/quartz
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue