Skip to content

Commit

Permalink
Persist archive-webserver-logs state-file between downs/ups
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrini committed Nov 26, 2021
1 parent 991b353 commit 91de4cf
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docker-compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,12 @@ services:
- ../olsystem:/olsystem
- /1/var/lib/openlibrary/sitemaps/sitemaps:/sitemaps
# web log rotation
- ../olsystem/etc/cron.d/archive-webserver-logs:/etc/cron.d/archive-webserver-logs
- ../olsystem/etc/logrotate.d/nginx:/etc/logrotate.d/nginx
# Persist the nginx logs
- /1/var/log/nginx:/var/log/nginx
# Archive nginx logs regularly
- ../olsystem/etc/cron.d/archive-webserver-logs:/etc/cron.d/archive-webserver-logs
- archive-webserver-logs-data:/archive-webserver-logs-data
ports:
- 80:80
- 443:443
Expand Down Expand Up @@ -156,13 +159,16 @@ services:
# archive web log uploads
- ../olsystem:/olsystem
# web log rotation
- ../olsystem/etc/cron.d/archive-webserver-logs:/etc/cron.d/archive-webserver-logs
- ../olsystem/etc/logrotate.d/nginx:/etc/logrotate.d/nginx
# Persist the nginx logs
- /1/var/log/nginx:/var/log/nginx
# sitemap generation (we also need olsystem/etc/cron.d + openlibrary/scripts)
- /1/var/lib/openlibrary/sitemaps/sitemaps:/sitemaps
# Archive nginx logs regularly
- ../olsystem/etc/cron.d/archive-webserver-logs:/etc/cron.d/archive-webserver-logs
- archive-webserver-logs-data:/archive-webserver-logs-data
ports:
- 8080:80 # XXX change to 80!!!
- 80:80
- 443:443
networks:
- webnet
Expand Down Expand Up @@ -286,3 +292,4 @@ secrets:
volumes:
infobase-writelog:
infobase-errorlog:
archive-webserver-logs-data:

0 comments on commit 91de4cf

Please sign in to comment.