mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-12 01:39:58 +02:00
Enable easy deployment using Portainer and resolve image pull errors
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
This commit is contained in:
1 parent
d8e5af6c77
commit
61be21d06c
4 files changed
+225
No files matched your search
@@ -0,0 +1,65 @@
|
||||
version: '3.8'
|
||||
|
||||
# Configuration Stack Portainer pour RegisFlow
|
||||
# À utiliser directement dans Portainer comme Stack
|
||||
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: 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"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
|
||||
# Application RegisFlow - Image construite localement
|
||||
regisflow:
|
||||
image: regisflow:latest
|
||||
container_name: regisflow-app
|
||||
depends_on:
|
||||
regisflow-db:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 5000
|
||||
DATABASE_URL: postgresql://regisflow:RegisFlow2024!PostgreSQL@regisflow-db:5432/regisflow
|
||||
SESSION_SECRET: RegisFlow2024SessionSecretKey1234567890ABCDEF
|
||||
TZ: Europe/Paris
|
||||
SECURE_COOKIES: false
|
||||
DATA_RETENTION_MONTHS: 19
|
||||
BACKUP_RETENTION_DAYS: 90
|
||||
MAX_BACKUP_COUNT: 20
|
||||
volumes:
|
||||
- backup_data:/app/backups
|
||||
- logs_data:/app/logs
|
||||
ports:
|
||||
- "5000:5000"
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:5000/health || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 15s
|
||||
retries: 3
|
||||
start_period: 90s
|
||||
|
||||
# Volumes persistants
|
||||
volumes:
|
||||
postgres_data:
|
||||
backup_data:
|
||||
logs_data:
|
||||
|
||||
# Utilisation du réseau par défaut
|
||||
networks:
|
||||
default:
|
||||
name: regisflow-network
|
||||
Reference in new issue
Block a user