mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-11 17:29:48 +02:00
Isolate application inside its own network for better security
Configures Docker Compose to use a dedicated `regisflow_network` for enhanced isolation of the application's services. 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:
1 parent
b8252a4873
commit
cce1722e83
2 files changed
+12
-7
No files matched your search
@@ -26,14 +26,15 @@
|
||||
# RÉSEAUX COMPATIBLES PORTAINER
|
||||
# ==========================================
|
||||
|
||||
# Bridge par défaut (installation standard)
|
||||
# Réseau RegisFlow dédié (configuration actuelle)
|
||||
networks:
|
||||
default:
|
||||
regisflow_network:
|
||||
driver: bridge
|
||||
name: regisflow_network
|
||||
|
||||
# Réseau existant (créé dans Portainer)
|
||||
networks:
|
||||
default:
|
||||
regisflow_network:
|
||||
external: true
|
||||
name: nom-reseau-existant
|
||||
|
||||
|
||||
+8
-4
@@ -7,6 +7,8 @@ services:
|
||||
regisflow-db:
|
||||
image: postgres:15-alpine
|
||||
container_name: regisflow-db
|
||||
networks:
|
||||
- regisflow_network
|
||||
environment:
|
||||
POSTGRES_DB: regisflow
|
||||
POSTGRES_USER: regisflow
|
||||
@@ -29,6 +31,8 @@ services:
|
||||
context: .
|
||||
target: production
|
||||
container_name: regisflow-app
|
||||
networks:
|
||||
- regisflow_network
|
||||
depends_on:
|
||||
regisflow-db:
|
||||
condition: service_healthy
|
||||
@@ -61,8 +65,8 @@ volumes:
|
||||
backup_data:
|
||||
logs_data:
|
||||
|
||||
# Configuration réseau flexible (sans IP prédéfinies)
|
||||
# Vous pouvez changer de réseau dans Portainer après installation
|
||||
# Réseau dédié RegisFlow pour isolation et facilité de gestion
|
||||
networks:
|
||||
default:
|
||||
driver: ${NETWORK_DRIVER:-bridge}
|
||||
regisflow_network:
|
||||
driver: ${NETWORK_DRIVER:-bridge}
|
||||
name: regisflow_network
|
||||
Reference in new issue
Block a user