Compare commits

..

No commits in common. "ecf52670f0ada5bd953c72ec963b08af71b0a48f" and "1a8b4b36d583845719bbdb8d8a3d5566bac710f7" have entirely different histories.

3 changed files with 6 additions and 23 deletions

View file

@ -31,8 +31,6 @@ 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,7 +6,12 @@ services:
ports: ports:
- 80:80 - 80:80
environment: environment:
BASE_URL: "docs.modernleft.org" BASE_URL: "localhost"
volumes: volumes:
- ./quartz:/content - ./quartz:/content
- quartz-deps:/usr/share/nginx/html/node_modules
volumes:
quartz-deps:
driver: local
``` ```

View file

@ -1,20 +0,0 @@
```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
```