mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-11 17:29:48 +02:00
Improve deployment setup by adding network configurations and production files
Adds Docker network configuration, production compose file, and documentation updates in replit.md. 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/5d315300-98fa-429a-abb0-4fdce6a2e3c9.jpg
This commit is contained in:
1 parent
c041256bce
commit
a6d741fc53
4 files changed
+90
-4
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
@@ -0,0 +1,74 @@
|
||||
version: '3.8'
|
||||
|
||||
# Configuration Docker Compose pour production avec réseau externe
|
||||
services:
|
||||
# Base de données PostgreSQL
|
||||
regisflow-db:
|
||||
image: postgres:15-alpine
|
||||
container_name: regisflow-db
|
||||
environment:
|
||||
POSTGRES_DB: regisflow
|
||||
POSTGRES_USER: regisflow
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-RegisFlow2024!PostgreSQL}
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5433:5432"
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U regisflow -d regisflow || exit 1"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
start_period: 40s
|
||||
|
||||
# Application RegisFlow
|
||||
regisflow:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
target: production
|
||||
args:
|
||||
- NODE_ENV=production
|
||||
container_name: regisflow-app
|
||||
depends_on:
|
||||
regisflow-db:
|
||||
condition: service_healthy
|
||||
pull_policy: never
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 3000
|
||||
DATABASE_URL: postgresql://regisflow:${POSTGRES_PASSWORD:-RegisFlow2024!PostgreSQL}@regisflow-db:5432/regisflow
|
||||
SESSION_SECRET: ${SESSION_SECRET:-RegisFlow2024SessionSecretKey1234567890ABCDEF}
|
||||
TZ: ${TZ:-Europe/Paris}
|
||||
SECURE_COOKIES: ${SECURE_COOKIES:-false}
|
||||
DATA_RETENTION_MONTHS: ${DATA_RETENTION_MONTHS:-19}
|
||||
BACKUP_RETENTION_DAYS: ${BACKUP_RETENTION_DAYS:-90}
|
||||
MAX_BACKUP_COUNT: ${MAX_BACKUP_COUNT:-20}
|
||||
volumes:
|
||||
- backup_data:/app/backups
|
||||
- logs_data:/app/logs
|
||||
ports:
|
||||
- "3000:3000"
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 120s
|
||||
|
||||
# Volumes persistants
|
||||
volumes:
|
||||
postgres_data:
|
||||
driver: local
|
||||
backup_data:
|
||||
driver: local
|
||||
logs_data:
|
||||
driver: local
|
||||
|
||||
# Utilisation du réseau nginx_default pour production Replit
|
||||
networks:
|
||||
default:
|
||||
external: true
|
||||
name: nginx_default
|
||||
+8
-4
@@ -7,6 +7,8 @@ services:
|
||||
regisflow-db:
|
||||
image: postgres:15-alpine
|
||||
container_name: regisflow-db
|
||||
networks:
|
||||
- regisflow_network
|
||||
environment:
|
||||
POSTGRES_DB: regisflow
|
||||
POSTGRES_USER: regisflow
|
||||
@@ -32,6 +34,8 @@ services:
|
||||
args:
|
||||
- NODE_ENV=production
|
||||
container_name: regisflow-app
|
||||
networks:
|
||||
- regisflow_network
|
||||
depends_on:
|
||||
regisflow-db:
|
||||
condition: service_healthy
|
||||
@@ -68,8 +72,8 @@ volumes:
|
||||
logs_data:
|
||||
driver: local
|
||||
|
||||
# Utilisation du réseau nginx_default existant
|
||||
# Configuration réseau flexible pour déploiement
|
||||
networks:
|
||||
default:
|
||||
external: true
|
||||
name: nginx_default
|
||||
regisflow_network:
|
||||
driver: bridge
|
||||
name: regisflow_network
|
||||
@@ -359,6 +359,14 @@ Preferred communication style: Simple, everyday language.
|
||||
- ✅ Corrected port configuration from 5000 to 3000 for proper deployment
|
||||
- ✅ Updated all Docker and application configurations to use port 3000
|
||||
|
||||
### Docker Network Connectivity Fix (January 13, 2025)
|
||||
- ✅ Fixed "driver failed programming external connectivity" deployment error
|
||||
- ✅ Created flexible network configuration with local bridge network
|
||||
- ✅ Added docker-compose.prod.yml for production deployment with nginx_default
|
||||
- ✅ Separated development and production Docker configurations
|
||||
- ✅ Resolved external network dependency issues preventing deployment
|
||||
- ✅ Enhanced network specifications for both database and application services
|
||||
|
||||
### Portainer Deployment Fix (January 10, 2025)
|
||||
- ✅ Resolved Docker image pull error "regisflow-regisflow:latest" in Portainer
|
||||
- ✅ Created local image building solution with "regisflow:latest" tag
|
||||
|
||||
Reference in new issue
Block a user