Skip to content

Instantly share code, notes, and snippets.

@dougvk
Created January 2, 2017 14:45
Show Gist options
  • Save dougvk/d8572def210125ded37022f3104cff2d to your computer and use it in GitHub Desktop.
Save dougvk/d8572def210125ded37022f3104cff2d to your computer and use it in GitHub Desktop.
  • Description for running the Energy Hub services

Create a digital ocean docker box using the docker-machine command: https://docs.docker.com/machine/drivers/digital-ocean/ Run docker-compose -f docker-compose.yml.production build Run docker-compose -f docker-compose.yml.production up -d

If you look at the docker-compose file, you'll see it builds the nginx and node apps. nginx has a configurable .crt file, which you should change. Same with default.conf, based on your specifications.

The first time you run the docker-compose command, it will spin up the nginx and the ehub box. The ehub box will not work. This is because you need to copy the files from this github into it's ehub-vol. You can find the directory of this path by running docker inspect ehub and looking where the /app folder is on the digital ocean box. Then copy the files over there and run docker-compose -f docker-compose.yml.production up -d again. Voilá -- should work from there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment