first commit added docker compose
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled

This commit is contained in:
Yajbir Singh
2025-12-05 21:33:29 +05:30
parent 6beea74a9f
commit 55fc00480d
7 changed files with 833 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
[program:ds-converter]
command=/var/www/COMPANY_NAME/documentserver/server/FileConverter/converter
directory=/var/www/COMPANY_NAME/documentserver/server/FileConverter
user=ds
autostart=true
autorestart=true
startsecs=10
startretries=3
stopwaitsecs=60
killasgroup=true
stopasgroup=true
stdout_logfile=/var/log/COMPANY_NAME/documentserver/converter/out.log
stderr_logfile=/var/log/COMPANY_NAME/documentserver/converter/err.log
stdout_logfile_maxbytes=10MB
stderr_logfile_maxbytes=10MB
stdout_logfile_backups=5
stderr_logfile_backups=5
environment=NODE_ENV="production-linux",NODE_CONFIG_DIR="/etc/COMPANY_NAME/documentserver",NODE_DISABLE_COLORS="1"

View File

@@ -0,0 +1,18 @@
[program:ds-docservice]
command=/var/www/COMPANY_NAME/documentserver/server/DocService/docservice
directory=/var/www/COMPANY_NAME/documentserver/server/DocService
user=ds
autostart=true
autorestart=true
startsecs=10
startretries=3
stopwaitsecs=60
killasgroup=true
stopasgroup=true
stdout_logfile=/var/log/COMPANY_NAME/documentserver/docservice/out.log
stderr_logfile=/var/log/COMPANY_NAME/documentserver/docservice/err.log
stdout_logfile_maxbytes=10MB
stderr_logfile_maxbytes=10MB
stdout_logfile_backups=5
stderr_logfile_backups=5
environment=NODE_ENV="production-linux",NODE_CONFIG_DIR="/etc/COMPANY_NAME/documentserver",NODE_DISABLE_COLORS="1"

View File

@@ -0,0 +1,18 @@
[program:ds-metrics]
command=/var/www/COMPANY_NAME/documentserver/server/Metrics/metrics
directory=/var/www/COMPANY_NAME/documentserver/server/Metrics
user=ds
autostart=false
autorestart=true
startsecs=10
startretries=3
stopwaitsecs=10
killasgroup=true
stopasgroup=true
stdout_logfile=/var/log/COMPANY_NAME/documentserver/metrics/out.log
stderr_logfile=/var/log/COMPANY_NAME/documentserver/metrics/err.log
stdout_logfile_maxbytes=10MB
stderr_logfile_maxbytes=10MB
stdout_logfile_backups=5
stderr_logfile_backups=5
environment=NODE_ENV="production-linux",NODE_CONFIG_DIR="/etc/COMPANY_NAME/documentserver",NODE_DISABLE_COLORS="1"

View File

@@ -0,0 +1,45 @@
#!/bin/bash
### BEGIN INIT INFO
# Provides: supervisor
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Supervisor init script
# Description: Supervisor is a client/server system for controlling
# process state under UNIX-like operating systems.
### END INIT INFO
SUPERVISORD=/usr/bin/supervisord
SUPERVISORCTL=/usr/bin/supervisorctl
PIDFILE=/var/run/supervisord.pid
CONF=/etc/supervisor/supervisord.conf
. /lib/lsb/init-functions
case "$1" in
start)
log_daemon_msg "Starting supervisor" "supervisord"
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $SUPERVISORD -- -c $CONF
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping supervisor" "supervisord"
start-stop-daemon --stop --quiet --pidfile $PIDFILE
log_end_msg $?
;;
restart)
$0 stop
sleep 1
$0 start
;;
status)
status_of_proc -p $PIDFILE $SUPERVISORD supervisor && exit 0 || exit $?
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
exit 0