vault backup: 2025-01-17 20:38:34
This commit is contained in:
parent
50243b51fa
commit
4a1c1a0359
3 changed files with 17 additions and 20 deletions
|
@ -1,10 +1,14 @@
|
|||
---
|
||||
title: quartz-docker
|
||||
title: ModernLeft - quartz-docker
|
||||
draft: false
|
||||
date: 2025-01-16
|
||||
---
|
||||
|
||||
[quartz-docker image](https://code.modernleft.org/gravityfargo/-/packages/container/quartz-docker/v4.4.0)
|
||||
| | |
|
||||
| ------------ | --------------------------------------------------------------------------------------------------------- |
|
||||
| image | [quartz-docker image](https://code.modernleft.org/gravityfargo/-/packages/container/quartz-docker/v4.4.0) |
|
||||
| base project | [quartz](https://quartz.jzhao.xyz/) |
|
||||
| image source | [gravityfargo/quartz-dockerl](https://code.modernleft.org/gravityfargo/quartz-docker) |
|
||||
|
||||
```bash
|
||||
docker pull code.modernleft.org/gravityfargo/quartz-docker:v4.4.0
|
||||
|
@ -14,6 +18,8 @@ This project runs **Quartz** v4.4.0, a fast, batteries-included static site gene
|
|||
|
||||
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.
|
||||
|
||||
## 🐳 Docker Compose Setup
|
||||
|
||||
Create a data directory
|
||||
|
@ -49,7 +55,7 @@ docker stop quartz-wiki
|
|||
|
||||
On first run, the container will download the necessary dependencies, build the site, and download the content repository.
|
||||
|
||||
After that, you can configure whatever you would like in `/srv/quartz/src` using the stock options found in the quartz [documentation](https://quartz.jzhao.xyz/configuration) Bare minimum should be `baseUrl` and
|
||||
After that, you can configure whatever you would like in `/srv/quartz/src` using the stock options found in the quartz [documentation](https://quartz.jzhao.xyz/configuration) Bare minimum should be `baseUrl` and `pageTitle`.
|
||||
|
||||
🥳 Done! 🎉
|
||||
|
||||
|
@ -85,12 +91,11 @@ environment:
|
|||
|
||||
### Environment Variables
|
||||
|
||||
| Variable | Description | Default Value |
|
||||
| ---------------- | ----------------------------------------------------- | ----------------------------- |
|
||||
| `USER_ID` | UID that` /content` and` /config` will be chown'd to. | `1000` |
|
||||
| `GROUP_ID` | GID that` /content` and` /config` will be chown'd to. | `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 | |
|
||||
| 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 | |
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
---
|
||||
title: quartz-docker - cron
|
||||
draft: false
|
||||
date: 2025-01-16
|
||||
tags:
|
||||
- test
|
||||
---
|
|
@ -1 +0,0 @@
|
|||
|
Loading…
Reference in a new issue