Compare commits
2 commits
1a8b4b36d5
...
ecf52670f0
Author | SHA1 | Date | |
---|---|---|---|
ecf52670f0 | |||
1bfb94aaf8 |
3 changed files with 23 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -6,12 +6,7 @@ services:
|
|||
ports:
|
||||
- 80:80
|
||||
environment:
|
||||
BASE_URL: "localhost"
|
||||
BASE_URL: "docs.modernleft.org"
|
||||
volumes:
|
||||
- ./quartz:/content
|
||||
- quartz-deps:/usr/share/nginx/html/node_modules
|
||||
|
||||
volumes:
|
||||
quartz-deps:
|
||||
driver: local
|
||||
```
|
20
Applications/quartz-docker/recommended docker-compose.md
Normal file
20
Applications/quartz-docker/recommended docker-compose.md
Normal 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
|
||||
```
|
Loading…
Reference in a new issue