A
A
Arthur2019-10-13 19:45:53
go
Arthur, 2019-10-13 19:45:53

How to auto-restart a Go application running in Docker?

Greetings.
I'm setting up Go on Docker for the first time, and the question arose of restarting the application when changing the sources. Like nodemon does for nodejs. I found the package https://github.com/mitranim/gow, configured it, but for some reason the application does not restart.
Actually, what am I doing wrong and how can I make the Go application automatically restart when the source code changes?
In the docker, I put only two packages golang: alpine and mongo.
docker-compose.yml
Dockerfile
Go-code is probably not important, there is a minimal example for a bot, but here it is for everyone

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question