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.