Adding log limit settings to magneticod and murmur stacks.
This commit is contained in:
parent
955b28b08a
commit
55c689340e
|
@ -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
|
||||||
|
|
|
@ -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}"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue