Refactor how the project is run, using nginx instead of hugo server, a cron job to pull git changes, and a start script to ensure the correct services are started each run and are monitored to stay up.

This commit is contained in:
2025-08-15 11:45:23 -07:00
parent dfb9a306c5
commit d035f9d8e7
6 changed files with 112 additions and 17 deletions

View File

@@ -9,12 +9,21 @@ services:
network: host
restart: always
ports:
- 8013:1313
- 8013:80 # Production minified files served using NGINX.
- 1380:1380 # Development files with drafts served by Hugo Server.
environment:
- REPO=$REPO
- PROD=$PROD
- DEV=$DEV
healthcheck:
test: curl -sS http://localhost:80 || curl -sS http://localhost:1380 || exit 1
interval: 1m
timeout: 10s
retries: 2
start_period: 30s
deploy:
mode: global
resources:
limits:
cpus: '0.10'
memory: 32M
memory: 64M