mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-22 14:48:19 +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
|
# RÉSEAUX COMPATIBLES PORTAINER
|
||||||
# ==========================================
|
# ==========================================
|
||||||
|
|
||||||
# Bridge par défaut (installation standard)
|
# Réseau RegisFlow dédié (configuration actuelle)
|
||||||
networks:
|
networks:
|
||||||
default:
|
regisflow_network:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
name: regisflow_network
|
||||||
|
|
||||||
# Réseau existant (créé dans Portainer)
|
# Réseau existant (créé dans Portainer)
|
||||||
networks:
|
networks:
|
||||||
default:
|
regisflow_network:
|
||||||
external: true
|
external: true
|
||||||
name: nom-reseau-existant
|
name: nom-reseau-existant
|
||||||
|
|
||||||
|
|||||||
+8
-4
@@ -7,6 +7,8 @@ services:
|
|||||||
regisflow-db:
|
regisflow-db:
|
||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
container_name: regisflow-db
|
container_name: regisflow-db
|
||||||
|
networks:
|
||||||
|
- regisflow_network
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: regisflow
|
POSTGRES_DB: regisflow
|
||||||
POSTGRES_USER: regisflow
|
POSTGRES_USER: regisflow
|
||||||
@@ -29,6 +31,8 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
target: production
|
target: production
|
||||||
container_name: regisflow-app
|
container_name: regisflow-app
|
||||||
|
networks:
|
||||||
|
- regisflow_network
|
||||||
depends_on:
|
depends_on:
|
||||||
regisflow-db:
|
regisflow-db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -61,8 +65,8 @@ volumes:
|
|||||||
backup_data:
|
backup_data:
|
||||||
logs_data:
|
logs_data:
|
||||||
|
|
||||||
# Configuration réseau flexible (sans IP prédéfinies)
|
# Réseau dédié RegisFlow pour isolation et facilité de gestion
|
||||||
# Vous pouvez changer de réseau dans Portainer après installation
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
regisflow_network:
|
||||||
driver: ${NETWORK_DRIVER:-bridge}
|
driver: ${NETWORK_DRIVER:-bridge}
|
||||||
|
name: regisflow_network
|
||||||
Reference in new issue
Block a user