From 67d8d1b81a454bc6cb19762c3344e4f7bb7511c3 Mon Sep 17 00:00:00 2001 From: Nathan Price Date: Sat, 18 Jan 2025 15:59:34 -0500 Subject: [PATCH] vault backup: 2025-01-18 15:59:34 --- Docker Images/quartz.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Docker Images/quartz.md b/Docker Images/quartz.md index d6963ec..77c1842 100644 --- a/Docker Images/quartz.md +++ b/Docker Images/quartz.md @@ -10,7 +10,6 @@ date: 2025-01-16 | Official quartz project | [GitHub - jackyzha0/quartz](https://github.com/jackyzha0/quartz) | | Image Source | [Forgejo - gravityfargo/quartz-docker](https://code.modernleft.org/gravityfargo/quartz-docker) | | Issue Tracker | | -| | | ```bash docker pull code.modernleft.org/gravityfargo/quartz-docker:v4.4.0 @@ -18,11 +17,11 @@ docker pull code.modernleft.org/gravityfargo/quartz-docker:v4.4.0 --- -This project runs **Quartz** v4.4.0, a fast, batteries-included static site generator, inside a **Docker container**. It transforms Markdown content into a fully functional website. +This project runs Quartz v4.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. -There is no support for SSL or any other features that are not directly related to building the site. I run everything behind traeffik, so I don't need it. +There is no support for SSL or any other features that are not directly related to building the site. I run everything behind traefik, so I don't need it. ## 🐳 Docker Compose Setup @@ -69,6 +68,7 @@ If you don't use the cron job, and don't feel like restarting the container, you ```bash docker exec -it quartz-wiki bash +# cd /quartz/content/ && git restore . && git pull cd /quartz/src/ && npx quartz build ``` @@ -101,13 +101,13 @@ environment: ### Environment Variables -| Variable | Description | Default Value | -| -------------------- | -------------------------------------------- | ---------------------------------------------------- | -| `USER_ID`/`GROUP_ID` | UID/GID that` /quartz` will be chown'd to. | `1000`:`1000` | -| `NGINX_PORT` | Port for the Nginx server | `80` | -| `SERVER_NAME` | NGINX server name | `quartz.zhao.xyz` | -| `ENABLE_CRON` | Enables scheduled builds (`true` or `false`) | `false` | -| `BUILD_SCHEDULE` | Cron expression for scheduling site builds | `"*/10 * * * *"` every 10 min | -| `CONTENT_REPO` | URL of the content repository | `https://code.modernleft.org/gravityfargo/empty.git` | +| Variable | Description | Default Value | +| -------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `USER_ID`/`GROUP_ID` | UID/GID that` /quartz` will be chown'd to on startup | `1000`:`1000` | +| `NGINX_PORT` | Port for the Nginx server | `80` | +| `SERVER_NAME` | NGINX server name | `quartz.zhao.xyz` | +| `ENABLE_CRON` | Enables scheduled builds (`true` or `false`) | `false` | +| `BUILD_SCHEDULE` | Cron expression for scheduling site builds | `"*/10 * * * *"` every 10 min | +| `CONTENT_REPO` | URL of the content repository | `https://code.modernleft.org/gravityfargo/empty.git` | > [!NOTE] > `CONTENT_REPO` Must use https, not git.