mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-11 17:29:37 +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
+3
-3
@@ -5,21 +5,21 @@ services:
|
||||
build: .
|
||||
container_name: notes-todo-app
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "2222:2222"
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
- ./public/uploads:/app/public/uploads
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- JWT_SECRET=${JWT_SECRET:-change_me_in_production_please_use_strong_secret}
|
||||
- PORT=3000
|
||||
- PORT=2222
|
||||
- UPLOADS_PATH=/app/public/uploads
|
||||
- DB_PATH=/app/data/notes.db
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- nginx_default
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1))"]
|
||||
test: ["CMD", "node", "-e", "require('http').get('http://localhost:2222/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1))"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
Reference in new issue
Block a user