fix: Update ports to avoid conflicts with existing Docker projects

- Change Gitea port from 3000 to 3001
- Change API port from 8080 to 8082
- Change Nginx port from 80 to 8083
- Add docker-compose.override.yml for local development
- Add deployment guide for existing servers
This commit is contained in:
2026-04-19 23:00:08 +05:00
parent f1e0f6b5ef
commit 263b0c1b64
5 changed files with 305 additions and 8 deletions
+29
View File
@@ -0,0 +1,29 @@
module.exports = {
apps: [{
name: 'nanaxe-api',
script: './api/src/index.js',
instances: 1,
exec_mode: 'fork',
env: {
NODE_ENV: 'production',
PORT: 3001
},
error_file: './logs/err.log',
out_file: './logs/out.log',
log_file: './logs/combined.log',
time: true,
max_memory_restart: '256M',
restart_delay: 3000,
max_restarts: 5,
min_uptime: '10s',
watch: false,
ignore_watch: ['node_modules', 'logs', 'data'],
merge_logs: true,
log_type: 'json',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
// Auto-restart on failure
autorestart: true,
// Don't restart if crashing too fast
exp_backoff_restart_delay: 100
}]
};