Sorry, Docker noob here. I am familiar with how to i.e. write data outside of containers if using i.e. this syntax:
docker run -d --name=test -v /my/local/path/datencockpit-db:/var/lib/mysql
but I can't figure out how this works with the docker-compose.yml.sample file. Inside there I see these relevant lines but can't figure it out on my own:
volumes:
datencockpit-db:
datencockpit-html:
volumes:
- datencockpit-db:/var/lib/mysql
volumes:
- datencockpit-html:/var/www/html
Would you mind commenting on this please? lets assume I wanted to save the Db data here /my/local/path/datencockpit-db and the HTML Data here /my/local/path/datencockpit-html so that if I update or destroy and recreate the docker container I won't lose my data.
Sorry, Docker noob here. I am familiar with how to i.e. write data outside of containers if using i.e. this syntax:
docker run -d --name=test -v /my/local/path/datencockpit-db:/var/lib/mysqlbut I can't figure out how this works with the docker-compose.yml.sample file. Inside there I see these relevant lines but can't figure it out on my own:
Would you mind commenting on this please? lets assume I wanted to save the Db data here /my/local/path/datencockpit-db and the HTML Data here /my/local/path/datencockpit-html so that if I update or destroy and recreate the docker container I won't lose my data.