Docker Community Forums

Share and learn in the Docker community.

Setup a Docker Development Environment


(Ipasha) #1

On our project, their are 3 Laravel Application and Node Application.

  • app1.dev (laravel)

  • app2.dev (laravel)

  • api.dev (laravel)

  • socket.dev (node)

  • app1.dev, app2.dev, api.dev all those application use a 1 single MySQL Database.

  • app1.dev and app2.dev 2 app use a Redis cache server.

  • app1.dev use a mongo database.

So we want’s that:

  1. client enter our apps like app1.dev OR app2.dev Using a NGINX-PROXY container.
  2. app1.dev, app2.dev, api.dev all 3 apps are setting on top off 3 Apache Container (and communicate each other via apache-to-apache, if it’s possible) with the help off PHP-FPM container.
  3. 1 MySQL container for all 3 app.
  4. 1 Redis container for app1.dev and app2.dev.
  5. 1 Mongo container for app1.dev.
    So it is a great help, if any one share this docker-compose file and thanks in advance.