mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-20 05:28:13 +02:00
Update application and database port configurations
Adjusted Docker configuration, exposing PostgreSQL on port 4523 and the application on internal port 5555, with Nginx proxying requests to the application. Updated Dockerfile, docker-compose.yml, and DOCKER.md accordingly. 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/rBcOjHB
This commit is contained in:
1 parent
5bd45764b4
commit
8ea8ad8085
5 files changed
+19
-19
No files matched your search
@@ -45,10 +45,10 @@ docker-compose logs -f
|
||||
docker-compose down
|
||||
```
|
||||
|
||||
## 🌐 Accès à l'application
|
||||
## 🌐 Accès
|
||||
|
||||
- **Accès direct** : http://localhost:4523
|
||||
- **Avec Nginx** (reverse proxy) : Voir section ci-dessous
|
||||
- **PostgreSQL** : Accessible sur le port **4523** (mappé vers 5432 interne)
|
||||
- **Application** : Accessible via Nginx sur le réseau `nginx_default`
|
||||
|
||||
## 🔧 Architecture réseau
|
||||
|
||||
@@ -60,6 +60,10 @@ docker-compose down
|
||||
- PostgreSQL et l'application sont sur ce réseau
|
||||
- Permet l'accès via Nginx et un domaine personnalisé
|
||||
|
||||
### Ports exposés
|
||||
- **PostgreSQL** : `4523:5432` (port hôte 4523 → port container 5432)
|
||||
- **Application** : Port 5555 interne (non exposé sur l'hôte, accessible via Nginx)
|
||||
|
||||
## 📝 Configuration Nginx
|
||||
|
||||
### Prérequis : Créer le réseau nginx
|
||||
@@ -72,11 +76,11 @@ docker network create nginx_default
|
||||
|
||||
### Configuration Nginx
|
||||
|
||||
Mettez à jour votre configuration Nginx pour cibler le port **4523** :
|
||||
Configurez Nginx pour cibler l'application sur le port **5555** :
|
||||
|
||||
```nginx
|
||||
upstream socialflow {
|
||||
server socialflow-app:4523; # ← Utiliser le port 4523
|
||||
server socialflow-app:5555; # ← Port interne de l'application
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
Reference in new issue
Block a user