How to configure the directory where to store each database?

The context : I’m “playing” with Docker to host severals websites on one of my VPS.

I run 1 httpd docker container for each of this website, but I’ve not enought resources to run 1 mysqld container for all of them…

  • Implementing MongoDB in AWS EC2 Container Service
  • Jenkins Job Builder not creating publishers
  • app source not being imported into docker container with docker-compose
  • Can I transport just the image changes/layers i'm concerned with?
  • Get ride of Vmware and move to Docker, how to properly setup the Dockerfile or the cointainer?
  • Copy files from ftp to docker container
  • So I’m going to run only 1 mysqld instance, but I would like to manage database’s data storage. Is it possible to tell mysql the location of each database on my filesystem?

  • Starting Xserver in Docker Ubuntu container
  • Why host is not hitting web app in docker container even with -P option?
  • How to get Docker to run on a Windows System behind a corporate firewall?
  • how to publish my docker image
  • Adding project folder except for Dockerfile
  • Running ASP.NET Core with HTTPS in docker from Visual Studio 2015
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.