golang-cafe / job-board

Golang Cafe - Go job board with no recruiters and clear salary ranges
https://golang.cafe
BSD 3-Clause "New" or "Revised" License
208 stars 50 forks source link

Deployment of Dockerized Postgres and Golang to VM #129

Closed milimyname closed 1 year ago

milimyname commented 1 year ago

Hi everyone.

I wonder if it is alright to ask a question regarding of deployment golang cafe oss?

I got a VM and I wanna deploy together the dockerized postgres and golang app using docker compose. Has anyone done it or what would you recommend me to do instead? When I tried to deploy seperately, I got some issues regarding of connection to the postgres even though I psqled it successfully.

If I deploy them separately, I believe I need to take care of db persistent volume?

ghost commented 1 year ago

yes you need to have a persistent volume is you intend to use a dockerised version of postgres. another option is to use postgres as a service from the many providers out there