mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-19 05:07:08 +02:00
Update deployment to use Nginx reverse proxy network
Configure docker-compose.yml and DOCKER.md to enable Nginx reverse proxy access by making the application and PostgreSQL available on the `nginx_default` external network. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/MNNRXY7
This commit is contained in:
1 parent
990542ff0f
commit
5bd45764b4
3 files changed
+14
-29
No files matched your search
@@ -54,39 +54,25 @@ docker-compose down
|
||||
|
||||
### Réseau interne (`internal`)
|
||||
- PostgreSQL et l'application communiquent sur ce réseau privé
|
||||
- La base de données n'est **pas exposée** sur l'hôte pour plus de sécurité
|
||||
|
||||
### Réseau nginx (`nginx_default`) - OPTIONNEL
|
||||
### Réseau nginx (`nginx_default`)
|
||||
- Réseau externe pour le reverse proxy Nginx
|
||||
- **Par défaut : désactivé** (commenté dans docker-compose.yml)
|
||||
- Décommentez-le uniquement si vous utilisez Nginx
|
||||
- PostgreSQL et l'application sont sur ce réseau
|
||||
- Permet l'accès via Nginx et un domaine personnalisé
|
||||
|
||||
## 📝 Configuration Nginx (optionnelle)
|
||||
## 📝 Configuration Nginx
|
||||
|
||||
### Activation du réseau Nginx
|
||||
### Prérequis : Créer le réseau nginx
|
||||
|
||||
Si vous utilisez Nginx comme reverse proxy :
|
||||
**Avant de lancer docker-compose**, créez le réseau nginx (une seule fois) :
|
||||
|
||||
1. **Créer le réseau Docker nginx** (une seule fois) :
|
||||
```bash
|
||||
docker network create nginx_default
|
||||
```
|
||||
|
||||
2. **Décommenter dans docker-compose.yml** :
|
||||
```yaml
|
||||
# Dans la section app > networks :
|
||||
networks:
|
||||
- internal
|
||||
- nginx_default # ← Décommentez cette ligne
|
||||
### Configuration Nginx
|
||||
|
||||
# Dans la section networks en bas du fichier :
|
||||
networks:
|
||||
# ...
|
||||
nginx_default:
|
||||
external: true # ← Décommentez ces 2 lignes
|
||||
```
|
||||
|
||||
3. **Mettre à jour votre configuration Nginx** pour cibler le port **4523** :
|
||||
Mettez à jour votre configuration Nginx pour cibler le port **4523** :
|
||||
|
||||
```nginx
|
||||
upstream socialflow {
|
||||
|
||||
Reference in new issue
Block a user