All Projects → alessandromr → medium-go-nginx-docker

alessandromr / medium-go-nginx-docker

Licence: MIT license
Use Nginx with Docker to serve a Golang app.

Programming Languages

Dockerfile
14818 projects
go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to medium-go-nginx-docker

Xfrps
xfrps fork from frp but mainly use its server side feature and cooperate with xfrp
Stars: ✭ 179 (+297.78%)
Mutual labels:  reverse-proxy
Varnish Cache
Varnish Cache source code repository
Stars: ✭ 2,769 (+6053.33%)
Mutual labels:  reverse-proxy
node-proxy
High performance HTTP and reverse proxy server based on Node.js. 基于 Node.js 的高性能 HTTP 及反向代理服务器,类似nginx。
Stars: ✭ 71 (+57.78%)
Mutual labels:  reverse-proxy
Janus
An API Gateway written in Go
Stars: ✭ 2,249 (+4897.78%)
Mutual labels:  reverse-proxy
Pomerium
Pomerium is an identity-aware access proxy.
Stars: ✭ 2,860 (+6255.56%)
Mutual labels:  reverse-proxy
Krakend Ce
KrakenD Community Edition. Make your binary of KrakenD API Gateway
Stars: ✭ 245 (+444.44%)
Mutual labels:  reverse-proxy
Otoroshi
Lightweight api management on top of a modern http reverse proxy
Stars: ✭ 177 (+293.33%)
Mutual labels:  reverse-proxy
roxy
Roxy the Frontend Proxy
Stars: ✭ 52 (+15.56%)
Mutual labels:  reverse-proxy
Otunnel
peer-to-peer tunnel tool
Stars: ✭ 224 (+397.78%)
Mutual labels:  reverse-proxy
gateway
A high-performance API Gateway with middlewares, supporting HTTP and gRPC protocols.
Stars: ✭ 520 (+1055.56%)
Mutual labels:  reverse-proxy
External Auth Server
easy auth for reverse proxies
Stars: ✭ 189 (+320%)
Mutual labels:  reverse-proxy
Cloudmare
Cloudflare, Sucuri, Incapsula real IP tracker.
Stars: ✭ 213 (+373.33%)
Mutual labels:  reverse-proxy
Fasttunnel
NAT 内网穿透 远程内网计算机 域名访问内网站点 反向代理内网服务 花生壳 端口转发 http代理 微信 小程序 expose a local server behind a NAT or firewall to the internet like ngrok and frp. NAT ssh proxy tunnel reverse-proxy
Stars: ✭ 248 (+451.11%)
Mutual labels:  reverse-proxy
Lightify
a reverse proxy that boosts the web app performance!
Stars: ✭ 187 (+315.56%)
Mutual labels:  reverse-proxy
docker-ssl-reverse-proxy
Easy-to-use auto-SSL reverse proxy as a Docker container based on Caddy and Let’s Encrypt
Stars: ✭ 22 (-51.11%)
Mutual labels:  reverse-proxy
Portfusion
Haskell-powered cross-platform transport-layer distributed reverse / forward proxy & tunneling solution – currently available for all TCP protocols (RDP, VNC, HTTP(S), SSH, ...).
Stars: ✭ 177 (+293.33%)
Mutual labels:  reverse-proxy
Ecs Nginx Reverse Proxy
Reference architecture for deploying Nginx on ECS, both as a basic static resource server, and as a reverse proxy in front of a dynamic application server.
Stars: ✭ 245 (+444.44%)
Mutual labels:  reverse-proxy
nginx-proxy
Docker container for automatically creating nginx configuration based on active services in docker host.
Stars: ✭ 28 (-37.78%)
Mutual labels:  reverse-proxy
spp
A simple and powerful proxy
Stars: ✭ 575 (+1177.78%)
Mutual labels:  reverse-proxy
Mongols
C++ high performance networking with TCP/UDP/RESP/HTTP/WebSocket protocols
Stars: ✭ 250 (+455.56%)
Mutual labels:  reverse-proxy

Use Nginx Reverse Proxy to serve Go Services

Golang served by Nginx reverse proxy.

Check the tutorial on Medium

Requirements

Installation

  • Browse the repository's root
  • Build the images
    • docker-compose build
  • Start containers
    • docker-compose up -d

After starting containers you can test the Api at:

http://localhost/api/

Code Building

Golang is a compiled programming language so to make any changes to your app, you need to build the executable again. In this repo the build process is done inside the docker-build process. So when you need to re-compile the code you can follow this steps:

  • docker-compose down
  • docker-compose build
  • docker-compose up -d

To simplify this steps you can create a makefile and group this commands in a single one, or on *nix system you can use this version of the commands:

docker-compose down && docker-compose build && docker-compose up -d
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].