vault backup: 2025-01-17 11:18:00

This commit is contained in:
Nathan Price 2025-01-17 11:18:00 -05:00
parent 572732800e
commit ec24822db2
Signed by: gravityfargo
SSH key fingerprint: SHA256:bjq+uA1U+9bFMd70q2wdNtwaYxGv84IBXalnYvZDKmg

View file

@ -29,13 +29,23 @@ See a list of all Environment Variables [[environment variables|here.]]
``` ```
2. Create a `docker-compose.yml` file 2. Create a `docker-compose.yml` file
#### Minimal
#### Minimal
![[minimal docker-compose]] ![[minimal docker-compose]]
##### `BASE_URL` ##### `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`. 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
![[recommended docker-compose]]
**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]] 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. ![[recommended docker-compose]]
##### 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]]
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.