mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-11 17:29:37 +02:00
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.
30 lines
770 B
YAML
30 lines
770 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
notes-app:
|
|
build: .
|
|
container_name: notes-todo-app
|
|
ports:
|
|
- "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=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:2222/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1))"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
networks:
|
|
nginx_default:
|
|
external: true |