wordpress-docker-compose icon indicating copy to clipboard operation
wordpress-docker-compose copied to clipboard

Run a few installations at the same time on 80 port

Open proger-su opened this issue 2 years ago • 4 comments

Hi guys! Is it possible to run a few installations at the same time on 80 port? So far I have managed to do this on different ports. Ex: http://firstsite.local:8181 and http://secondsite.local:8282

Thanks a lot!

proger-su avatar Feb 03 '23 08:02 proger-su

Sure, you can use a different IP configuration in the .env of each project.

nezhar avatar Feb 12 '23 12:02 nezhar

Sure, you can use a different IP configuration in the .env of each project.

Yeh, but could you give some example, please?

proger-su avatar Feb 12 '23 15:02 proger-su

In you .env file you can use:

IP=127.0.0.2

Define a new IP for every project, this way they can all run in parallel. You also need to make sure the port you are using for the binding is not already in use for the selected IP.

nezhar avatar Feb 12 '23 19:02 nezhar

You can also make use of https://github.com/nezhar/wordpress-docker-compose/pull/86 and now define the PORT in the .env, file

nezhar avatar Feb 13 '23 10:02 nezhar