config.logDirPath not respected when using Docker
laur89 opened this issue · 0 comments
laur89 commented
Create container:
docker create --name='tplink-energy-monitor'
--net='host'
-e 'TCP_PORT_3000'='3000'
-v '/path/on/host/tplink-energy-monitor':'/config':'rw'
-v '/path/on/host/tplink-energy-monitor/logger-config.json':'/opt/tplink-monitor/logger-config.json':'ro'
jbarnett/tplink-energy-monitor npm start /config/logger-config.json
/path/on/host/tplink-energy-monitor/logger-config.json:
{
"logDirPath": "/config/logs",
"logIntervalSeconds": 2,
"maxLogEntries": 302400
}
At least logIntervalSeconds
is deffo picked up, but logfiles are still written to the default location, not into /path/on/host/tplink-energy-monitor/logs
as expected.
Doing ls /config/logs
from container works fine, ie directory itself exists.