stackvana / hook.io

Open-Source Microservice Hosting Platform
https://hook.io
Other
1.26k stars 117 forks source link

Update Docker #303

Closed ibrado closed 6 years ago

ibrado commented 6 years ago

This updates the Docker configuration to work with the current master, and adds/updates supporting scripts. It also improves Docker caching so it doesn't rebuild thenpm packages unless a new module is added.

Five containers based on three images will be launched:

  1. hookio_app - the main web app
  2. hookio_balancer - the load balancer on port 80, from 1
  3. hookio_worker0 - the microservice worker, from 1
  4. hookio_couch - CouchDB
  5. hookio_redis - Redis

See also #252

Marak commented 6 years ago

@ibrado -

I was able to review this and it looks good, thank you!

Cursory testing of services seems OK. Can you advise on any way to run the tests locally inside the docker environment? I'd like to ensure that tests will still pass.

ibrado commented 6 years ago

Hi @Marak! I actually didn't know that you could start the stack without Docker (how..?) so I didn't take that into consideration. I also have no idea re the tests at this time.

Re 0.0.0.0 to hostname, I think that may have something to do with requests going to the wrong container, but I'm not sure IIRC.

Would having separate configs for Docker and local dev be possible?

I don't have access to my test box at this time; will see what I can figure out when I do.