-
-
Notifications
You must be signed in to change notification settings - Fork 266
Docker
The project has an experimental Docker setup, using Docker Compose. It is entirely optional, so if you don't want to use Docker, feel free to ignore it.
If you have Docker installed, there's a good chance that running docker-compose up
is all you need to do to build and start 3 docker containers (one each for the app itself, Redis, and MongoDB). From there, you should be able to connect to http://localhost:49160 and see the app running.
OS-X installation via Homebrew:
$ brew cask install docker
$ brew cask install virtualbox
<-- High Sierra may give you an error, follow these instructions: https://matthewpalmer.net/blog/2017/12/10/install-virtualbox-mac-high-sierra/index.html
$ brew install docker-compose docker-machine
Then:
$ eval "$(docker-machine env default)"
$ docker-compose build
$ docker-compose up 2>&1 | grep -v 'nodetube-mongo'
This filters out nodetube-mongo messages so the ngrok url to access the running nodetube instance shows up as the last item in the scroll.
Then you should be able to connect to the app via: http://192.168.99.100:49160/
and the ngrok URL shown in the console.
You can connect to MongoDB at http://192.168.99.100:27017/