From 6633d7a2ebe764010f5a412d8892d8297c872391 Mon Sep 17 00:00:00 2001 From: Nathan Price Date: Fri, 17 Jan 2025 20:18:34 -0500 Subject: [PATCH] vault backup: 2025-01-17 20:18:34 --- Applications/quartz-docker.md | 10 +--------- Applications/quartz-docker/docker-compose.md | 17 ++++++++++------- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/Applications/quartz-docker.md b/Applications/quartz-docker.md index 19539aa..f3fc1be 100644 --- a/Applications/quartz-docker.md +++ b/Applications/quartz-docker.md @@ -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 diff --git a/Applications/quartz-docker/docker-compose.md b/Applications/quartz-docker/docker-compose.md index 2041746..184f60f 100644 --- a/Applications/quartz-docker/docker-compose.md +++ b/Applications/quartz-docker/docker-compose.md @@ -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 ```