Enable configurable network settings for flexible deployment options

Allows users to customize the Docker network via environment variables and provides network configuration examples.

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/1a628c74-3aad-4182-a42f-aeae036e6dcf.jpg
This commit is contained in:
michaelschal committed 2025-07-09 22:56:43 +00:00
1 parent 1ee5972c47
commit 4048c4edd4
2 files changed
+70 -3

No files matched your search

+61
View File
@@ -0,0 +1,61 @@
# Exemples de configurations réseau pour RegisFlow
# Copiez et adaptez selon vos besoins
# ==========================================
# EXEMPLE 1 : RÉSEAU BRIDGE PERSONNALISÉ
# ==========================================
# Dans .env :
# NETWORK_DRIVER=bridge
# NETWORK_SUBNET=192.168.100.0/24
# NETWORK_BRIDGE_NAME=regisflow-net
# ==========================================
# EXEMPLE 2 : RÉSEAU HOST (sans isolation)
# ==========================================
# Dans .env :
# NETWORK_DRIVER=host
# Supprimez les ports mappings dans docker-compose.yml
# Pour utiliser le réseau host, modifiez docker-compose.yml :
# services:
# regisflow-db:
# network_mode: host
# regisflow:
# network_mode: host
# ==========================================
# EXEMPLE 3 : RÉSEAU EXISTANT
# ==========================================
# Pour utiliser un réseau Docker existant :
# networks:
# default:
# external: true
# name: mon-reseau-existant
# ==========================================
# EXEMPLE 4 : MACVLAN (IP dédiée)
# ==========================================
# Dans .env :
# NETWORK_DRIVER=macvlan
# NETWORK_SUBNET=192.168.1.0/24
# Puis ajoutez dans docker-compose.yml networks :
# driver_opts:
# parent: eth0 # Interface réseau de l'hôte
# ==========================================
# EXEMPLE 5 : DOCKER SWARM (OVERLAY)
# ==========================================
# Pour Docker Swarm avec réseau overlay :
# networks:
# default:
# driver: overlay
# attachable: true
# ==========================================
# COMMENT CHANGER DE RÉSEAU
# ==========================================
# 1. Arrêtez les services : docker-compose down
# 2. Modifiez les variables dans .env
# 3. Redémarrez : docker-compose up -d
# 4. Vérifiez : docker network ls
+9 -3
View File
@@ -1,7 +1,7 @@
version: '3.8'
# Configuration Docker Compose pour RegisFlow
# Installation simple sans configuration réseau
# Réseau configurable via variables d'environnement
services:
# Base de données PostgreSQL
regisflow-db:
@@ -61,7 +61,13 @@ volumes:
backup_data:
logs_data:
# Réseau par défaut (pas de configuration IP)
# Configuration réseau flexible
# Vous pouvez changer NETWORK_DRIVER dans .env selon vos besoins
networks:
default:
driver: bridge
driver: ${NETWORK_DRIVER:-bridge}
driver_opts:
com.docker.network.bridge.name: ${NETWORK_BRIDGE_NAME:-docker0}
ipam:
config:
- subnet: ${NETWORK_SUBNET:-172.20.0.0/16}