daijinara PRO said about 2 months ago on Easy Infrastructure :
  David Kimura Would you please allow me to clarify your view on production level architecture? You are suggesting to use managed DB and object storage services outside of your Portainer cluster. How would you setup in the 'docker-compose.yml.erb' in this case? Also if you want to add other additional services like Sidekiq, ElasticSearch, and AnyCable, how would you use your Portainer clusters? Do you see your Portainer clusters as specific to application server functions?

This is really useful tutorial! Thank you so much. 

David Kimura PRO said about 2 months ago on Easy Infrastructure :
If you need other services like Sidekiq, ElasticSearch or anything else, you would be able to add the appropriate services in the docker-compose files. Yes, the DB, redis and other services (outside of the app services) should go on the managed services. This would provide a certain level of backups appropriately. 

It's also not ideal that the postgres, redis, etc are dockerized (whether it is in the docker swarm or kubernetes) since the service could become unhealthy and reboot at any point in time. Since these aren't redundant services, it could bring down the application unexpectedly while they're being restarted.

If you wanted to use managed services, you could still use the docker swarm and portainer. You'd need to pass the environment variables through to the app services which can be done through portainer or some other mechanism.

szluyufeng said about 2 months ago on Easy Infrastructure :
Can we talk about kubernetes?

David Kimura PRO said about 2 months ago on Easy Infrastructure :
I like Kubernetes, but I think it adds a lot of knowledge requirement in the creation of the yaml files, config and server maintenance that Docker Swarm doesn't have. For hobby projects and in general, many may not want to get too deep into the infrastructure side of things that would otherwise be unavoidable with Kubernetes.

daijinara PRO said about 1 month ago on Easy Infrastructure :
  David Kimura  Thank you so much for your detailed answer. As I have no professional experience, your insights are so educational!

Login to Comment