Files
Regisflow/docker-compose.yml
T
michaelschal 896dc6cca0 Improve the system setup and database management for the application
Removes the explicit declaration of `regisflow-network` in `docker-compose.yml`, updates `drizzle-kit push:pg` to `drizzle-kit push` in `docker-entrypoint.sh`, and adds attached assets.

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:39:00 +00:00

55 lines
1.4 KiB
YAML

version: '3.8'
services:
# Base de données PostgreSQL
postgres:
image: postgres:15-alpine
container_name: regisflow-db
environment:
POSTGRES_DB: regisflow
POSTGRES_USER: regisflow
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-regisflow2024}
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro
ports:
- "5432:5432"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U regisflow -d regisflow"]
interval: 10s
timeout: 5s
retries: 5
# Application RegisFlow
regisflow:
build: .
container_name: regisflow-app
depends_on:
postgres:
condition: service_healthy
environment:
NODE_ENV: production
PORT: 5000
DATABASE_URL: postgresql://regisflow:${POSTGRES_PASSWORD:-regisflow2024}@postgres:5432/regisflow
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:
postgres_data:
driver: local
backup_data:
driver: local