mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-19 21:28:39 +02:00
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
This commit is contained in:
1 parent
dccf01e9c8
commit
974684f6d4
4 files changed
+58
-63
No files matched your search
+2
-29
@@ -1,37 +1,14 @@
|
||||
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:
|
||||
- "5433:5432"
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U regisflow -d regisflow"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
# Application RegisFlow
|
||||
# Application RegisFlow seule (base de données externe)
|
||||
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
|
||||
DATABASE_URL: ${DATABASE_URL}
|
||||
SESSION_SECRET: ${SESSION_SECRET:-your-super-secret-session-key-change-in-production}
|
||||
TZ: Europe/Paris
|
||||
volumes:
|
||||
@@ -46,10 +23,6 @@ services:
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
|
||||
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
driver: local
|
||||
backup_data:
|
||||
driver: local
|
||||
Reference in new issue
Block a user