31 lines
		
	
	
		
			719 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			719 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| # 2025-08-13
 | |
| # Configuration for running a Hugo website pulled from Git.
 | |
| 
 | |
| services:
 | |
|   app:
 | |
|     container_name: hugo
 | |
|     build:
 | |
|       context: ./
 | |
|       network: host
 | |
|     restart: always
 | |
|     ports:
 | |
|       - 8013:80   # Production minified files served using NGINX.
 | |
|       - 1380:1380 # Development files with drafts served by Hugo Server.
 | |
|     environment:
 | |
|       - REPO=$REPO
 | |
|       - BRANCH=$BRANCH
 | |
|       - 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: $CPU
 | |
|           memory: $MEM
 |