- 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!