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 MAGNETICO_DATABASE_URL=sqlite3:///data/database.sqlite3
HOST_USER=0 HOST_USER=0
LOG_MAX_SIZE=5m
LOG_MAX_FILE=5

View file

@ -15,3 +15,8 @@ services:
user: "${HOST_USER}" user: "${HOST_USER}"
restart: unless-stopped restart: unless-stopped
command: "-v --indexer-addr=0.0.0.0:${MAGNETICO_PORT} --indexer-max-neighbors=${MAGNETICO_NEIGHBORS} --database=${MAGNETICO_DATABASE_URL}" 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 # see https://cloud.docker.com/repository/docker/skobkin/murmur-official-static
MURMUR_HOSTNAME=mumble.skobk.in 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" - "/etc/localtime:/etc/localtime:ro"
env_file: .env env_file: .env
restart: unless-stopped restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "${LOG_MAX_SIZE}"
max-file: "${LOG_MAX_FILE}"
volumes: volumes:
murmur-data: murmur-data: