From 572732800e3b2f64dc7113d76fc6611130ce2222 Mon Sep 17 00:00:00 2001 From: Nathan Price Date: Fri, 17 Jan 2025 11:15:13 -0500 Subject: [PATCH] vault backup: 2025-01-17 11:15:13 --- Applications/quartz-docker.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Applications/quartz-docker.md b/Applications/quartz-docker.md index a3008e1..e4765c2 100644 --- a/Applications/quartz-docker.md +++ b/Applications/quartz-docker.md @@ -29,11 +29,13 @@ See a list of all Environment Variables [[environment variables|here.]] ``` 2. Create a `docker-compose.yml` file +#### Minimal ![[minimal docker-compose]] - The only required variable is `BASE_URL`. The rest are set to the developer's [defaults](https://quartz.jzhao.xyz/configuration) `BASE_URL` sets both quartz's "baseUrl" as well as nginx's `server_name`. + ##### `BASE_URL` + The only required variable is `BASE_URL`. The rest are set to the developer's [defaults](https://quartz.jzhao.xyz/configuration) `BASE_URL` sets both quartz's `baseUrl` as well as nginx's `server_name`. + +#### Recommended ![[recommended docker-compose]] - To keep the image small, `node_modules` are downloaded when the container is run. You should keep them in a volume so that the modules persist between container runs. + **node_modules volume:** To keep the image small, `node_modules` are not included. When the container is run, they're downloaded to `/usr/share/nginx/html/node_modules`. You should keep them in a volume so that the modules persist between container runs. -### Cron - -![[cron]] + [[cron]] You should also set `ENABLE_CRON` to `true` and set `BUILD_SCHEDULE` to a cron expression to enable the cron job that `npx quartz build` is executed which will pull the latest content and build the site.