Report this

What is the reason for this report?

provision Nginx exposing Golang server (1 or many)

Posted on December 14, 2018

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.