[Feat] Easy setup for Postgre on Linux with Docker
Context
Have added Docker setup for dev environment, where a user needs to do some pre-setup as mentioned in README.md and just run docker-compose up for the services to start.
Prod Docker setup has been added as well, but as extra files. We can take a reference from them and update USERNAME/DBNAME when deployed to prod.
Not familiar with docker but wouldn't it make sense to have a Dockerfile instead of a shell script?
Yeah! That's true. But, would work on that later, and remove this file, as for that kind of setup, even the Server should start using Docker.
Using docker compose would probably make the most sense then
Hi @SitiSchu I have tested compose file with only Postgres as container. But, when creating API server image for Cargo project, on my system it fails. If it fails for you as well, we can put this PR on hold for a while. Will work on this later then!
When running docker-compose up I do get a error for the api service so I guess we can hold off on this for now
When running
docker-compose upI do get a error for the api service so I guess we can hold off on this for now
Do create a secrets folder before u run docker-compose up
I have updated the README for details on application startup using docker-compose
@SitiSchu This PR is in working state now. :100: