37 lines
870 B
YAML
37 lines
870 B
YAML
version: '3'
|
|
|
|
services:
|
|
api:
|
|
image: elpoyo/patois-api:latest
|
|
restart: always
|
|
ports:
|
|
- '52002:3000'
|
|
environment:
|
|
- PORT=3000
|
|
- TEXTS_PATH=/app/texts
|
|
- NODE_ENV=production
|
|
volumes:
|
|
- /mnt/configs/patois:/app/texts
|
|
|
|
frontend:
|
|
image: elpoyo/patois-frontend:latest
|
|
restart: always
|
|
ports:
|
|
- '52001:80'
|
|
environment:
|
|
- VITE_TEXTS_API_URL=http://192.168.1.34:52002/api
|
|
depends_on:
|
|
- api
|
|
|
|
# Configuration pour TrueNAS SCALE
|
|
#
|
|
# API accessible sur : http://192.168.1.34:52002/api
|
|
# Frontend accessible sur : http://192.168.1.34:52001
|
|
#
|
|
# Dossier des textes : /mnt/configs/patois (doit exister sur TrueNAS)
|
|
#
|
|
# Pour déployer :
|
|
# 1. Créer le répertoire /mnt/configs/patois sur TrueNAS
|
|
# 2. Copier ce fichier sur TrueNAS
|
|
# 3. Déployer avec : docker-compose -f truenas-deploy.yml up -d
|