Initial commit
This commit is contained in:
25
supervisord.conf
Normal file
25
supervisord.conf
Normal file
@@ -0,0 +1,25 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
logfile=/var/log/supervisor/supervisord.log
|
||||
pidfile=/var/run/supervisord.pid
|
||||
user=root
|
||||
|
||||
[program:nginx]
|
||||
command=/usr/sbin/nginx -g "daemon off;"
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stderr_logfile=/var/log/supervisor/nginx.err.log
|
||||
stdout_logfile=/var/log/supervisor/nginx.out.log
|
||||
priority=10
|
||||
|
||||
[program:backend]
|
||||
command=/app/backend/main
|
||||
directory=/app/backend
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stderr_logfile=/var/log/supervisor/backend.err.log
|
||||
stdout_logfile=/var/log/supervisor/backend.out.log
|
||||
priority=20
|
||||
# Переменные окружения будут переданы из docker run --env-file
|
||||
# PORT по умолчанию 8080 внутри контейнера
|
||||
|
||||
Reference in New Issue
Block a user