I still try to understand some things with docker helped with portainer but i can't find tuto for:
1 - Persistent data: I would like to run Mariadb container with persistent database. So i would like to add a volume "db" with a mountpoint in my
/home/user. Unfortunatly, the mount point is always in
/var/lib/docker/volumes etc. How to do that?
2 - Link: assuming i succeed to run the mysql container with persistent database, i would like to link nginx container (with persistent data
/home/mountpoint:/data/www) to my mysql container with environment variable (example with docker compose: https://github.com/dadeg/docker-compose-nginx-php7-mysql/blob/master/docker-compose.yml). I notice the network option but i don't think it could help... How to link the container and create template with more environment variable?
Docker-compose could be a better way?
Thank you in advance for any help.