Page 1 of 1

How to add storage area at host filesystem to zm in docker container?

Posted: Tue Jul 07, 2020 7:49 pm
by andrew-yu
How to add storage area at host filesystem to zm in docker container?

Re: How to add storage area at host filesystem to zm in docker container?

Posted: Tue Aug 18, 2020 7:06 pm
by burger
This is a docker question, not a ZM question. Try docker resources.

Typically you use Volumes for this.
e.g.

Code: Select all

nginx: image: 
nginx:latest 
container_name: custom_name_for_my_proxy 
volumes:
 - ./nginx.conf:/etc/nginx/nginx.conf 
 - /etc/letsencrypt/:/etc/letsencrypt/ 
 - ./webroot/:/var/www/html/
Here the first column is the host path, and the second column is the docker container's path.