Compare commits

...

2 commits

Author SHA1 Message Date
724881840c
vault backup: 2025-01-17 10:59:26 2025-01-17 10:59:26 -05:00
3be26d5ea0
vault backup: 2025-01-17 10:55:13 2025-01-17 10:55:13 -05:00
2 changed files with 30 additions and 10 deletions

View file

@ -16,20 +16,22 @@ This project runs **Quartz 4**, a fast, batteries-included static site generator
- node and nginx included - node and nginx included
- configurable cron for job to pull and build site - configurable cron for job to pull and build site
## 🛠️ Getting Started ## 🛠️ Getting Started
### Docker Compose ### Docker Compose
```sh
docker run
```
See a list of all Environment Variables [[environment variables|here.]] See a list of all Environment Variables [[environment variables|here.]]
```yaml
docker compose file 1. Create a data directory and pull your existing content
```bash
git clone https://code.modernleft.org/gravityfargo/modernleft-docs.git quartz
``` ```
2. Create a `docker-compose.yml` file
![[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`.
### Cron ### Cron
![[cron]]
![[cron]]

View file

@ -0,0 +1,18 @@
**Minimal**
```yaml
services:
quartz-docker:
container_name: quartz-docker
image: code.modernleft.org/gravityfargo/quartz-docker:v4.4.0
ports:
- 80:80
environment:
BASE_URL: "localhost"
volumes:
- ./quartz:/content
- quartz-deps:/usr/share/nginx/html/node_modules
volumes:
quartz-deps:
driver: local
```