mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-21 22:28:18 +02:00
Changement du port de l'application de 3000 à 2222
Modifications: - docker-compose.yml: port mapping 2222:2222 et variable PORT=2222 - Dockerfile: EXPOSE 2222 et healthcheck sur port 2222 - server.js: port par défaut changé de 3000 à 2222 - .env.example: PORT=2222 - README.md: toutes les références au port 3000 remplacées par 2222 (installation, accès, configuration Nginx) L'application écoute maintenant sur le port 2222 au lieu de 3000.
This commit is contained in:
5 files changed
+11
-11
No files matched your search
@@ -61,7 +61,7 @@ cp .env.example .env
|
||||
|
||||
Éditer le fichier `.env` :
|
||||
```env
|
||||
PORT=3000
|
||||
PORT=2222
|
||||
JWT_SECRET=<générer_une_clé_secrète_forte>
|
||||
NODE_ENV=production
|
||||
```
|
||||
@@ -78,7 +78,7 @@ docker-compose up -d --build
|
||||
|
||||
4. **Accéder à l'application**
|
||||
```
|
||||
http://localhost:3000
|
||||
http://localhost:2222
|
||||
```
|
||||
|
||||
### Identifiants par défaut
|
||||
@@ -116,7 +116,7 @@ docker-compose restart
|
||||
|
||||
```nginx
|
||||
location /notes {
|
||||
proxy_pass http://notes-todo-app:3000;
|
||||
proxy_pass http://notes-todo-app:2222;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
|
||||
Reference in new issue
Block a user