How to set up multiple websites using a single mySQL database with Docker

I am developing multiple websites pointing to a common database. How would I accomplish this using DockerOcean hosting? Would I create a droplet for each site and another for the database? The thing to keep in mind is that the database could easily expand into GBs or even TBs of records.

The idea and strength of Docker is isolation of concerns. So you really want to keep things separate.

So you would have a separate web server and database Server for each web site. You can have multiple of those on single droplet (docker machine) if you want

Thank you, George. Just to clarify; are you saying that (i.e. I have 3 domains using 1 database.) that I would create 4 projects in Wappler. One for each domain and the 4th for the database?

If that is true, how would I deploy to DockerOcean? Also, just to clear up any misconceptions, I was under the impression that a website w/database represents a droplet. Are you saying a droplet can contain multiple websites and domains?

i need answer to the above question also

I suppose you could set up more than a website. But still remains the question. If you set a Docker site it will be easier to deploy a second image easily. If you start to setup 4 domains on a droplet wit 4 project well, in case of problem on the droplet you will get problem on 4 site instead of one.

If you got problem in a droplet, just start a new instance and deploy and you will be ready. This is the plus of Docker.