Creating the docker configuration for development purposes only
I didn't know if you wanted production dockers as well because than we can create a multi stage docker so we can have a production target and a development target
I wanted to keep it simple so you would easily go through it.
I can make it multi-stage with development and production if you want. You can ofcourse try it yourself or keep it like this. I can go over it on a discord call on stream if you want to.
I am using Air for hot reloading and using delv for debug purposes.
I changed port configuration to 8000:8000 because I like same port mappings. You can just change it to your likings.
Also using Alpine go base image because your HUGE SSD can handle that better <3
You can just run docker compose up and than connect the debugger from goland :).
BEWARE that if you stop the process in goland of delv don't be like me and be like "STOP REMOVE DELV PROCESS" HIT YES and than asking why the server is not working anymore :)
Creating the docker configuration for development purposes only
I wanted to keep it simple so you would easily go through it.
I can make it multi-stage with development and production if you want. You can ofcourse try it yourself or keep it like this. I can go over it on a discord call on stream if you want to.
I am using Air for hot reloading and using delv for debug purposes.
I changed port configuration to 8000:8000 because I like same port mappings. You can just change it to your likings. Also using Alpine go base image because your HUGE SSD can handle that better <3
You can just run docker compose up and than connect the debugger from goland :). BEWARE that if you stop the process in goland of delv don't be like me and be like "STOP REMOVE DELV PROCESS" HIT YES and than asking why the server is not working anymore :)