mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-18 20:59:46 +02:00
Integrate internal database within Docker for simplified setup and deployment
Configures PostgreSQL to run inside Docker, streamlining deployment and simplifying database management using Drizzle ORM. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 91318273-c764-4fd4-be04-bdc12c38af32 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/6e755801-08e8-4492-805e-ac3610de5a2a.jpg
This commit is contained in:
1 parent
e8977554e1
commit
a4c5301d74
7 files changed
+70
-71
No files matched your search
+14
-11
@@ -30,8 +30,8 @@ nano .env
|
||||
Éditez le fichier `.env` avec votre serveur PostgreSQL externe :
|
||||
|
||||
```env
|
||||
# Configuration de la base de données EXTERNE (PRÉCONFIGURÉE)
|
||||
DATABASE_URL=postgresql://regisflow:RegisFlow2024!@VOTRE_IP_POSTGRES:5433/regisflow
|
||||
# Configuration PostgreSQL (PRÉCONFIGURÉE)
|
||||
POSTGRES_PASSWORD=RegisFlow2024!
|
||||
|
||||
# Configuration de l'application
|
||||
NODE_ENV=production
|
||||
@@ -100,18 +100,21 @@ docker-compose logs -f
|
||||
|
||||
## 📋 Services Inclus
|
||||
|
||||
### RegisFlow (Application)
|
||||
### 1. PostgreSQL (Base de données)
|
||||
- **Container**: regisflow-db
|
||||
- **Port externe**: 5433 (accès depuis l'hôte)
|
||||
- **Port interne**: 5432 (communication Docker)
|
||||
- **Database**: regisflow
|
||||
- **Utilisateur**: regisflow
|
||||
- **Données persistantes**: Volume `postgres_data`
|
||||
|
||||
### 2. RegisFlow (Application)
|
||||
- **Container**: regisflow-app
|
||||
- **Port**: 5000
|
||||
- **Base de données**: PostgreSQL externe (configurée via DATABASE_URL)
|
||||
- **Dépendances**: regisflow-db
|
||||
- **Sauvegardes**: Volume `backup_data`
|
||||
- **Health check**: `/health`
|
||||
|
||||
### Configuration PostgreSQL Externe
|
||||
- **Prérequis**: Serveur PostgreSQL accessible depuis Docker
|
||||
- **Port**: 5433 (standard pour PostgreSQL externe)
|
||||
- **Configuration**: Via variable d'environnement DATABASE_URL
|
||||
- **Accès réseau**: Le container doit pouvoir accéder à l'IP de votre serveur PostgreSQL
|
||||
- **Firewall**: Autoriser les connexions depuis l'IP du container Docker
|
||||
- **Connexion DB**: Via nom de container `regisflow-db:5432`
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user