OSP logging and restart changes.
This commit is contained in:
parent
e798dc51ee
commit
c617a7c14b
|
@ -10,3 +10,7 @@ TZ=Europe/Moscow
|
||||||
STORAGE_DIR=./storage
|
STORAGE_DIR=./storage
|
||||||
DATABASE_DIR=./database
|
DATABASE_DIR=./database
|
||||||
NGINX_DIR=./nginx
|
NGINX_DIR=./nginx
|
||||||
|
|
||||||
|
# Logs
|
||||||
|
LOG_MAX_SIZE=5m
|
||||||
|
LOG_MAX_FILE=5
|
|
@ -8,7 +8,6 @@ services:
|
||||||
- 6379
|
- 6379
|
||||||
app:
|
app:
|
||||||
image: deamos/openstreamingplatform
|
image: deamos/openstreamingplatform
|
||||||
restart: always
|
|
||||||
ports:
|
ports:
|
||||||
- '1935:1935'
|
- '1935:1935'
|
||||||
- 'localhost:8585:80'
|
- 'localhost:8585:80'
|
||||||
|
@ -22,3 +21,9 @@ services:
|
||||||
- "${STORAGE_DIR}:/var/www"
|
- "${STORAGE_DIR}:/var/www"
|
||||||
- "${DATABASE_DIR}:/opt/osp/db"
|
- "${DATABASE_DIR}:/opt/osp/db"
|
||||||
- "${NGINX_DIR}:/usr/local/nginx/conf"
|
- "${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}"
|
Loading…
Reference in a new issue