mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-11 17:29:48 +02:00
Adds Portainer deployment configuration, scripts, and documentation, and fixes local image building. Replit-Commit-Author: Agent Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/c7544f27-893f-4348-971a-1d048c9a4d80.jpg
47 lines
1.5 KiB
Bash
Executable File
47 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Script de déploiement pour Portainer RegisFlow
|
|
# Ce script prépare et déploie RegisFlow via Portainer
|
|
|
|
echo "🚀 Déploiement RegisFlow pour Portainer"
|
|
echo "======================================"
|
|
|
|
# Étape 1: Construire l'image Docker
|
|
echo "🔧 Étape 1: Construction de l'image Docker..."
|
|
docker build -t regisflow:latest .
|
|
|
|
if [ $? -eq 0 ]; then
|
|
echo "✅ Image construite avec succès"
|
|
else
|
|
echo "❌ Échec de la construction de l'image"
|
|
exit 1
|
|
fi
|
|
|
|
# Étape 2: Vérifier que l'image existe
|
|
echo "🔍 Étape 2: Vérification de l'image..."
|
|
docker images | grep regisflow
|
|
|
|
# Étape 3: Arrêter les conteneurs existants si ils existent
|
|
echo "🛑 Étape 3: Nettoyage des conteneurs existants..."
|
|
docker stop regisflow-app regisflow-db 2>/dev/null || true
|
|
docker rm regisflow-app regisflow-db 2>/dev/null || true
|
|
|
|
# Étape 4: Informations pour Portainer
|
|
echo ""
|
|
echo "🐳 Instructions pour Portainer:"
|
|
echo "==============================="
|
|
echo "1. Dans Portainer, allez dans 'Stacks'"
|
|
echo "2. Cliquez sur 'Add stack'"
|
|
echo "3. Donnez un nom: 'regisflow'"
|
|
echo "4. Copiez le contenu du fichier 'portainer-stack.yml'"
|
|
echo "5. Cliquez sur 'Deploy the stack'"
|
|
echo ""
|
|
echo "📝 Nom de l'image à utiliser: regisflow:latest"
|
|
echo "🔗 URL d'accès: http://votre-serveur:5000"
|
|
echo "🔐 Connexion par défaut: admin/admin123"
|
|
echo ""
|
|
echo "📋 Ports exposés:"
|
|
echo " - Application: 5000"
|
|
echo " - PostgreSQL: 5433"
|
|
echo ""
|
|
echo "✅ Prêt pour le déploiement Portainer!" |