docker-asterisk icon indicating copy to clipboard operation
docker-asterisk copied to clipboard

mount volume for log files

Open mimusica opened this issue 5 years ago • 1 comments

I have a suggestion to mount a volume to the location where you keep your log files. This might come in handy for security reasons, etc... At the moment, you don't have any volumes mounted, which means that your log files aren't persistent through container restarts. Therefor you don't know what caused the previous container to stop or restart.

create a docker volume and mount it to /var/log/asterisk (or wherever the log files are located)

mimusica avatar Jul 21 '20 16:07 mimusica

To be added to the dockerfile:

VOLUME ['/var/lib/asterisk','/var/log/asterisk','/var/spool/asterisk']

mimusica avatar Jul 23 '20 23:07 mimusica