Compare commits

..

2 commits

Author SHA1 Message Date
ecf52670f0
vault backup: 2025-01-17 11:10:09 2025-01-17 11:10:09 -05:00
1bfb94aaf8
vault backup: 2025-01-17 11:05:12 2025-01-17 11:05:12 -05:00
3 changed files with 23 additions and 6 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

@ -6,12 +6,7 @@ services:
ports: ports:
- 80:80 - 80:80
environment: environment:
BASE_URL: "localhost" 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

@ -0,0 +1,20 @@
```yaml
services:
quartz-docker:
container_name: quartz-docker
image: code.modernleft.org/gravityfargo/quartz-docker:v4.4.0
ports:
- 8080:80
environment:
ENABLE_CRON: "true"
BUILD_SCHEDULE: "*/30 * * * *"
PAGE_TITLE: "ModernLeft Wiki"
BASE_URL: "docs.modernleft.org"
volumes:
- ./quartz:/content
- quartz-deps:/usr/share/nginx/html/node_modules
volumes:
quartz-deps:
driver: local
```