forked from zulip/docker-zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f445fc5
commit 8705221
Showing
7 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,7 @@ TODO.md | |
kubernetes/ | ||
scripts/ | ||
docker-compose.yml | ||
logs/ | ||
supervisor-logs/ | ||
zulip-data/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
docker exec -it zulip bash -c 'cat > /etc/logrotate.d/zulip-docker' << 'EOF' | ||
/var/log/zulip/*.log { | ||
daily | ||
rotate 7 | ||
compress | ||
delaycompress | ||
notifempty | ||
missingok | ||
create 644 zulip zulip | ||
sharedscripts | ||
postrotate | ||
supervisorctl reopen-logs | ||
endscript | ||
} | ||
|
||
/var/log/supervisor/*.log { | ||
daily | ||
rotate 7 | ||
compress | ||
delaycompress | ||
notifempty | ||
missingok | ||
create 644 root root | ||
sharedscripts | ||
postrotate | ||
supervisorctl reopen-logs | ||
endscript | ||
} | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/var/log/zulip/server.log | ||
/var/log/zulip/workers.log | ||
/var/log/zulip/errors.log | ||
{ | ||
rotate 7 | ||
daily | ||
missingok | ||
compress | ||
delaycompress | ||
notifempty | ||
create 644 zulip zulip | ||
sharedscripts | ||
postrotate | ||
/usr/bin/supervisorctl reopen-logs | ||
endscript | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[supervisord] | ||
nodaemon=true | ||
logfile=/var/log/supervisor/supervisord.log | ||
logfile_maxbytes=50MB | ||
logfile_backups=10 | ||
loglevel=info | ||
|
||
[program:zulip] | ||
command=/usr/local/bin/zulip start | ||
stdout_logfile=/var/log/zulip/server.log | ||
stdout_logfile_maxbytes=50MB | ||
stdout_logfile_backups=10 | ||
redirect_stderr=true | ||
autostart=true | ||
autorestart=true | ||
priority=10 | ||
startsecs=10 | ||
startretries=3 | ||
|
||
[program:cron] | ||
command=/usr/sbin/cron -f | ||
autostart=true | ||
autorestart=true |