Installation
Install Docker Deskop
cd into nginx-proxy and run docker network create nginx-proxy
followed by docker-compose up -d
Windows: click start and type Notepad, right click and open as Administrator. Click File->Open-> C:\Windows\System32\drivers\etc\hosts
In hosts add 127.0.0.1 my-app-2.test
at the bottom
in root git clone git@github.com:rbaskam/docker-multi-app-base.git my-app-2.test
cd into my-app-2.test Delete the .git from root then cd into src and run rm README.md then composer create-project laravel/laravel .
cd ..
In the docker-compose.yml
change all the container_name (8 ish of them) to something unique e.g nginx_four to nginx_five
Then change all the ports to something unique only the first part so - 3306:3306 becomes - 3307:3306
Change the virtual host to match your app
environment:
VIRTUAL_HOST: my-app-2.test
docker-compose up -d --build
https://github.com/aschmelyun/docker-compose-laravel
https://danielstoyanoff.medium.com/create-friendly-urls-for-your-local-dockers-3b35f676c341