provision Nginx exposing Golang server (1 or many)

December 14, 2018 891 views
Go Nginx Applications

Hi,

as a fullstack dev I am looking for the easiest way to deploy a webapp (bin) that would be exposed to the public internet, either via Nginx proxy to dispatch traffic to multiple webapps, or with docker. Looking for something automated via user data (get bin from a repo, install Nginx or docke and, run the services)

seems like CoreOS is an appropriate solution considering it is a container oriented OS, how would a cloud-config file look like to fetch compiled Golang web apps (from google drive or any other repo), declare it as new services, and run/manage (docker compose+nginx?) them in the background, restarting in case of a crash.

Be the first one to answer this question.