mirror of
https://github.com/Trollobot/Telemax.git
synced 2026-08-29 09:11:39 +00:00
Драйвер json-file по умолчанию копит stdout контейнера без ограничений между пересозданиями — теперь 10 МБ x 3 файла (~30 МБ максимум). update.log больше не дописывается на каждом обновлении (полный вывод сборки ~100-200 КБ за раз), а перезаписывается: для диагностики нужен только последний прогон.
22 lines
651 B
YAML
22 lines
651 B
YAML
services:
|
|
telemax:
|
|
build:
|
|
context: .
|
|
args:
|
|
GIT_COMMIT: ${GIT_COMMIT:-unknown}
|
|
restart: unless-stopped
|
|
# Hard cap on container stdout: the default json-file driver grows without
|
|
# limit between container recreations. 10m x 3 bounds it at ~30 MB total;
|
|
# relay tracing is INFO-level and proportional to actual message traffic,
|
|
# so this ceiling is effectively unreachable in normal use anyway.
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
ports:
|
|
- "${PORT:-3000}:${PORT:-3000}"
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- ./data:/app/.data
|