OSP logging and restart changes.

This commit is contained in:
Alexey Skobkin 2020-04-15 23:10:05 +03:00
parent e798dc51ee
commit c617a7c14b
No known key found for this signature in database
GPG Key ID: 5D5CEF6F221278E7
2 changed files with 11 additions and 2 deletions

View File

@ -9,4 +9,8 @@ TZ=Europe/Moscow
# Volumes
STORAGE_DIR=./storage
DATABASE_DIR=./database
NGINX_DIR=./nginx
NGINX_DIR=./nginx
# Logs
LOG_MAX_SIZE=5m
LOG_MAX_FILE=5

View File

@ -8,7 +8,6 @@ services:
- 6379
app:
image: deamos/openstreamingplatform
restart: always
ports:
- '1935:1935'
- 'localhost:8585:80'
@ -22,3 +21,9 @@ services:
- "${STORAGE_DIR}:/var/www"
- "${DATABASE_DIR}:/opt/osp/db"
- "${NGINX_DIR}:/usr/local/nginx/conf"
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "${LOG_MAX_SIZE:-5m}"
max-file: "${LOG_MAX_FILE:-5}"