Compare commits
2 commits
dc391856b5
...
67d8d1b81a
Author | SHA1 | Date | |
---|---|---|---|
67d8d1b81a | |||
b7a0ea8e4b |
1 changed files with 17 additions and 16 deletions
|
@ -4,12 +4,12 @@ draft: false
|
|||
date: 2025-01-16
|
||||
---
|
||||
|
||||
| | |
|
||||
| ----------------------- | --------------------------------------------------------------------------------------------------------- |
|
||||
| Image on Forgejo | [quartz-docker image](https://code.modernleft.org/gravityfargo/-/packages/container/quartz-docker/v4.4.0) |
|
||||
| Official quartz project | [quartz docs](https://quartz.jzhao.xyz/) |
|
||||
| Image Source | [gravityfargo/quartz-dockerl](https://code.modernleft.org/gravityfargo/quartz-docker) |
|
||||
| Issue Tracker | [GitHub - gravityfargo/bluesky-pds-docker](https://github.com/gravityfargo/bluesky-pds-docker) |
|
||||
| | |
|
||||
| ----------------------- | ---------------------------------------------------------------------------------------------- |
|
||||
| Image on Forgejo | [Forgejo](https://code.modernleft.org/gravityfargo/-/packages/container/quartz-docker/v4.4.0) |
|
||||
| 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
|
||||
|
@ -17,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
|
||||
|
||||
|
@ -68,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
|
||||
```
|
||||
|
@ -100,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.
|
||||
|
|
Loading…
Reference in a new issue