Adding log limit settings to magneticod and murmur stacks.

This commit is contained in:
Alexey Skobkin 2019-11-23 02:01:51 +03:00
parent 955b28b08a
commit 55c689340e
No known key found for this signature in database
GPG Key ID: 5D5CEF6F221278E7
4 changed files with 16 additions and 0 deletions

View File

@ -3,3 +3,6 @@ MAGNETICO_NEIGHBORS=200
MAGNETICO_DATABASE_URL=sqlite3:///data/database.sqlite3
HOST_USER=0
LOG_MAX_SIZE=5m
LOG_MAX_FILE=5

View File

@ -15,3 +15,8 @@ services:
user: "${HOST_USER}"
restart: unless-stopped
command: "-v --indexer-addr=0.0.0.0:${MAGNETICO_PORT} --indexer-max-neighbors=${MAGNETICO_NEIGHBORS} --database=${MAGNETICO_DATABASE_URL}"
logging:
driver: "json-file"
options:
max-size: "${LOG_MAX_SIZE}"
max-file: "${LOG_MAX_FILE}"

View File

@ -1,2 +1,5 @@
# see https://cloud.docker.com/repository/docker/skobkin/murmur-official-static
MURMUR_HOSTNAME=mumble.skobk.in
LOG_MAX_SIZE=5m
LOG_MAX_FILE=5

View File

@ -17,6 +17,11 @@ services:
- "/etc/localtime:/etc/localtime:ro"
env_file: .env
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "${LOG_MAX_SIZE}"
max-file: "${LOG_MAX_FILE}"
volumes:
murmur-data: