fresh tools run as like as pm2
docker-compose up --build --force-recreate
Here i use gorm and mysql with docker compose. Here create a docker-compose yml, Here the mysql container name is the database URL and PORT Now create a user and password. Give your permission and the same username and password give to the gorm config. As config/database.go configer.
Now Run the docker-compose with build and recreate. Hope its working well.