50 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| services:
 | |
|   obsi-viewer:
 | |
|     image: docker-registry.dev.home:5000/obsiviewer-angular:latest
 | |
|     container_name: obsiviewer-angular
 | |
|     hostname: ${NGINX_HOSTNAME:-obsiviewer-angular}
 | |
|     ports:
 | |
|       - "4444:4000"
 | |
|     environment:
 | |
|       - PORT=4000
 | |
|       - NODE_ENV=production
 | |
|       - TZ=${TZ:-America/Montreal}
 | |
|       - MEILI_HOST=http://meilisearch:7700
 | |
|       - MEILI_API_KEY=${MEILI_MASTER_KEY}
 | |
|     volumes:
 | |
|       # Montage du répertoire de la voûte Obsidian (optionnel)
 | |
|       - ${DIR_OBSIVIEWER_VAULT:-./vault}:/app/vault
 | |
|       # Montage des assets pour la configuration
 | |
|       - ${DIR_OBSIVIEWER:-./vault}/assets:/app/assets
 | |
|       # Montage optionnel pour la base de données
 | |
|       - ${DIR_OBSIVIEWER:-./vault}/db:/app/db
 | |
|     restart: unless-stopped
 | |
|     healthcheck:
 | |
|       test: ["CMD", "curl", "-fsS", "http://localhost:4000/api/health"]
 | |
|       interval: 30s
 | |
|       timeout: 5s
 | |
|       retries: 3
 | |
|       start_period: 10s
 | |
|     depends_on:
 | |
|       - meilisearch
 | |
| 
 | |
|   meilisearch:
 | |
|     image: getmeili/meilisearch:v1.11
 | |
|     container_name: obsiviewer-meilisearch
 | |
|     environment:
 | |
|       MEILI_MASTER_KEY: ${MEILI_MASTER_KEY}
 | |
|       MEILI_ENV: ${MEILI_ENV:-development}
 | |
|     volumes:
 | |
|       - meili_data:/meili_data
 | |
|     ports:
 | |
|       - "7700:7700"
 | |
|     restart: unless-stopped
 | |
|     healthcheck:
 | |
|       test: ["CMD", "curl", "-f", "http://localhost:7700/health"]
 | |
|       interval: 10s
 | |
|       timeout: 5s
 | |
|       retries: 5
 | |
| 
 | |
| volumes:
 | |
|   meili_data:
 |