wckr / wocker

Create your WordPress development environment in 3 SECONDS!
https://wocker.dev/
MIT License
480 stars 42 forks source link

Containers and domain #32

Open juan-manuel-alberro opened 8 years ago

juan-manuel-alberro commented 8 years ago

Can I run two containers at the same time and access it using a URL? By default, it uses wocker.dev but I want to create another container that runs into let says mysite.dev. Is that possible? Thanks.

ixkaito commented 8 years ago

Sorry for the late reply.

Can I run two containers at the same time and access it using a URL?

I have to say it's not available basically. However, if you are familiar with Docker, it's possible to do it, but it will be no longer Wocker.

ailispaw commented 8 years ago

I created a patch to run multiple wocker containers at the same time. https://github.com/ailispaw/wocker/tree/wocker-multi

If you run the wocker VM on _Mac OSX and installed **vagrant-triggers**_ plugin, you can access http://wocker.wocker.dev instead of http://wocker.dev as below. And you can create another wocker container as you want.

$ vagrant destroy -f # If you have already created the wocker VM.
$ vagrant up         # You may ask your password to setup DNS resolver and routing on Mac OSX.
$ open http://wocker.wocker.dev
$ vagrant ssh -c 'wocker-multi <name>'
$ open http://<name>.wocker.dev

It may take some time to refresh DNS cache on the local.

ixkaito commented 8 years ago

@ailispaw This is amazing! However, some Wocker commands will not work. I will consider this feature on the next major version.

ailispaw commented 8 years ago

@ixkaito Yeah, I'm concerned about Windows, too. We need contributors for that.

ixkaito commented 8 years ago

:+1: