From ecf52670f0ada5bd953c72ec963b08af71b0a48f Mon Sep 17 00:00:00 2001 From: Nathan Price Date: Fri, 17 Jan 2025 11:10:09 -0500 Subject: [PATCH] vault backup: 2025-01-17 11:10:09 --- Applications/quartz-docker.md | 2 ++ .../quartz-docker/minimal docker-compose.md | 5 ----- .../quartz-docker/recommended docker-compose.md | 16 ++++++---------- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/Applications/quartz-docker.md b/Applications/quartz-docker.md index e8eabe3..a3008e1 100644 --- a/Applications/quartz-docker.md +++ b/Applications/quartz-docker.md @@ -31,6 +31,8 @@ See a list of all Environment Variables [[environment variables|here.]] 2. Create a `docker-compose.yml` file ![[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`. + ![[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 diff --git a/Applications/quartz-docker/minimal docker-compose.md b/Applications/quartz-docker/minimal docker-compose.md index 713701e..7197d5d 100644 --- a/Applications/quartz-docker/minimal docker-compose.md +++ b/Applications/quartz-docker/minimal docker-compose.md @@ -9,9 +9,4 @@ services: BASE_URL: "docs.modernleft.org" volumes: - ./quartz:/content - - quartz-deps:/usr/share/nginx/html/node_modules - -volumes: - quartz-deps: - driver: local ``` \ No newline at end of file diff --git a/Applications/quartz-docker/recommended docker-compose.md b/Applications/quartz-docker/recommended docker-compose.md index ddbeb2b..e243e58 100644 --- a/Applications/quartz-docker/recommended docker-compose.md +++ b/Applications/quartz-docker/recommended docker-compose.md @@ -4,18 +4,14 @@ services: container_name: quartz-docker image: code.modernleft.org/gravityfargo/quartz-docker:v4.4.0 ports: - - 80:8080 + - 8080:80 environment: - NGINX_PORT: 8080 - ENABLE_CRON: "false" - BUILD_SCHEDULE: "*/10 * * * *" - PAGE_TITLE: "Quartz Docker" - ENABLE_SPA: "true" - ENABLE_POPOVERS: "true" - ANALYTICS_PROVIDER: "plausible" - BASE_URL: "localhost" + ENABLE_CRON: "true" + BUILD_SCHEDULE: "*/30 * * * *" + PAGE_TITLE: "ModernLeft Wiki" + BASE_URL: "docs.modernleft.org" volumes: - - /home/nathan/Repositories/modernleft-docs:/content + - ./quartz:/content - quartz-deps:/usr/share/nginx/html/node_modules volumes: