Contenerisation
This commit is contained in:
36
truenas-deploy.yml
Normal file
36
truenas-deploy.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
||||
Reference in New Issue
Block a user