Files
Regisflow/docker-compose.yml
T
michaelschal 974684f6d4 Enable connection to an external PostgreSQL database for greater flexibility
Refactors Docker configuration to support external PostgreSQL database connections, updating .env, README, docker-compose, and entrypoint script.

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
2025-07-09 20:54:09 +00:00

28 lines
706 B
YAML

version: '3.8'
services:
# Application RegisFlow seule (base de données externe)
regisflow:
build: .
container_name: regisflow-app
environment:
NODE_ENV: production
PORT: 5000
DATABASE_URL: ${DATABASE_URL}
SESSION_SECRET: ${SESSION_SECRET:-your-super-secret-session-key-change-in-production}
TZ: Europe/Paris
volumes:
- backup_data:/app/backups
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: 10s
retries: 3
start_period: 60s
volumes:
backup_data:
driver: local