jpadilla / notaso

Conoce a tus profesores antes de llegar al salón.
http://www.notaso.com/
Other
19 stars 6 forks source link

Dockerize #72

Closed jpadilla closed 6 years ago

jpadilla commented 9 years ago

Llevo días debatiendo si quiero Dockerize este proyecto con la posibilidad de tener un setup para deploy en Digital Ocean o en algún otro provider. Mayormente no quiero pagar $20 por solo tener SSL enabled en Heroku.

Maybe es un buen ejercicio para el Docker Meetup.

eluciano11 commented 9 years ago

mmmm yo nunca he usado docker pero aprendo.

jpadilla commented 9 years ago

Resources: https://registry.hub.docker.com/u/dockerfile/nginx/ https://registry.hub.docker.com/_/postgres/ https://www.terraform.io/

Might be a good idea to keep using the existing Heroku Postgres DB.

jpadilla commented 9 years ago

Terraform es un overkill for this.

Trying out tutum, just for the heck of it. Already have automatic builds in Docker Hub setup.

Might check out Cloudflare to deal with HTTPS.

jpadilla commented 9 years ago

Want to check out https://github.com/phusion/passenger-docker.

Setup idea until now: Container with app and its requirements running with gunicorn and nginx Private container with SSL and nginx configuration as a volume to the container above.

jpadilla commented 9 years ago

nginx container(notaso-web) + gunicorn container(notaso-app) is mostly working.

Next steps: Look into settings nginx + gunicorn(notaso-web + notaso-app) in one container, passenger-docker might work well for this setup, and attach notaso-data container for SSL certs.

Jpadilla1 commented 9 years ago

@jpadilla I think we should use www.fig.sh to setup the containers for a simple setup, linking up containers and easily scale any container if needed.

jpadilla commented 9 years ago

@Jpadilla1 sí, no estaría mal. Still need to figure out the setup without fig first.

Jpadilla1 commented 9 years ago

I've been playing around with docker for a few weeks now and finally got the hang of it. I'll investigate the setup with fig probably this weekend.

jpadilla commented 9 years ago

@Jpadilla1 sería bueno comparar notas or meetup later para meterle un rato. Voy a ver si hoy logro continuar.

jpadilla commented 9 years ago

http://blog.commando.io/the-perfect-nginx-ssl-configuration/

jpadilla commented 6 years ago

Will probably work on this, but focusing on development, docker + compose

Jpadilla1 commented 6 years ago

Happy to help out, been using docker with compose lately

jpadilla commented 6 years ago

@Jpadilla1 thanks! just opened a PR, could use your feedback on it #98