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…

  • What is the step by step process to deploy a java app to Docker?
  • Integrate private files for open source application code in devops pipeline
  • app source not being imported into docker container with docker-compose
  • Mac OS X & Docker 1.9.1 Insecure registry location
  • Enable external network access from my docker swarm
  • How to add `--registry-mirror` when starting docker from “Docker quickstart terminal”?
  • 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?

  • Docker-machine cannot connect to default machine (Windows)
  • What is a and how is it different from Dockerfile
  • Storage requirement when using for AWS ECS
  • Configure Nginx for routing
  • How can I exclude a sub-directory with a .dockerignore file
  • How to pass docker arguments during docker run command or docker-compose up command
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.