How To Deploy a Go Web Application with Docker and Nginx

In this tutorial, you will deploy an example Go web application with gorilla/mux as the request router and Nginx as the web server, all inside Docker containers, orchestrated by Docker Compose. You’ll use nginx-proxy with the Let’s Encrypt add-on as the reverse proxy.

Ubuntu

22.04

How To Deploy a Go Web Application with Docker and Nginx on Ubuntu 22.04

Learn How To Deploy a Go Web Application with Docker and Nginx on Ubuntu 22.04
18.04

How To Deploy a Go Web Application with Docker and Nginx on Ubuntu 18.04

Learn How To Deploy a Go Web Application with Docker and Nginx on Ubuntu 18.04

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.