sergsoares / golang-docker-compose-with-air

Example app to use air (for live reload code) with docker-compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example golang app with air

Example application using golang air with docker-compose for live reload.

$ docker-compose up
[+] Running 1/0
 ⠿ Container golang-docker-compose-with-air-app-1  Created                                                            0.0s
Attaching to golang-docker-compose-with-air-app-1
golang-docker-compose-with-air-app-1  | 
golang-docker-compose-with-air-app-1  |   __    _   ___  
golang-docker-compose-with-air-app-1  |  / /\  | | | |_) 
golang-docker-compose-with-air-app-1  | /_/--\ |_| |_| \_ , built with Go 
golang-docker-compose-with-air-app-1  | 
golang-docker-compose-with-air-app-1  | watching .
golang-docker-compose-with-air-app-1  | !exclude tmp
golang-docker-compose-with-air-app-1  | building...
golang-docker-compose-with-air-app-1  | running...

Then it need be basic configuration to allow live reloading code.

About

Example app to use air (for live reload code) with docker-compose


Languages

Language:Go 55.5%Language:Dockerfile 44.5%