vault backup: 2025-01-17 11:10:09

This commit is contained in:
Nathan Price 2025-01-17 11:10:09 -05:00
parent 1bfb94aaf8
commit ecf52670f0
Signed by: gravityfargo
SSH key fingerprint: SHA256:bjq+uA1U+9bFMd70q2wdNtwaYxGv84IBXalnYvZDKmg
3 changed files with 8 additions and 15 deletions

View file

@ -31,6 +31,8 @@ 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 docker-compose]] ![[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`. 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 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.
### Cron ### Cron

View file

@ -9,9 +9,4 @@ services:
BASE_URL: "docs.modernleft.org" BASE_URL: "docs.modernleft.org"
volumes: volumes:
- ./quartz:/content - ./quartz:/content
- quartz-deps:/usr/share/nginx/html/node_modules
volumes:
quartz-deps:
driver: local
``` ```

View file

@ -4,18 +4,14 @@ services:
container_name: quartz-docker container_name: quartz-docker
image: code.modernleft.org/gravityfargo/quartz-docker:v4.4.0 image: code.modernleft.org/gravityfargo/quartz-docker:v4.4.0
ports: ports:
- 80:8080 - 8080:80
environment: environment:
NGINX_PORT: 8080 ENABLE_CRON: "true"
ENABLE_CRON: "false" BUILD_SCHEDULE: "*/30 * * * *"
BUILD_SCHEDULE: "*/10 * * * *" PAGE_TITLE: "ModernLeft Wiki"
PAGE_TITLE: "Quartz Docker" BASE_URL: "docs.modernleft.org"
ENABLE_SPA: "true"
ENABLE_POPOVERS: "true"
ANALYTICS_PROVIDER: "plausible"
BASE_URL: "localhost"
volumes: volumes:
- /home/nathan/Repositories/modernleft-docs:/content - ./quartz:/content
- quartz-deps:/usr/share/nginx/html/node_modules - quartz-deps:/usr/share/nginx/html/node_modules
volumes: volumes: