SpamWatchAPI icon indicating copy to clipboard operation
SpamWatchAPI copied to clipboard

[Feat] Easy setup for Postgre on Linux with Docker

Open phoenisx opened this issue 6 years ago • 6 comments

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.

phoenisx avatar Aug 02 '19 19:08 phoenisx

Not familiar with docker but wouldn't it make sense to have a Dockerfile instead of a shell script?

SitiSchu avatar Aug 02 '19 19:08 SitiSchu

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.

phoenisx avatar Aug 02 '19 19:08 phoenisx

Using docker compose would probably make the most sense then

SitiSchu avatar Aug 02 '19 19:08 SitiSchu

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!

phoenisx avatar Aug 03 '19 14:08 phoenisx

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

SitiSchu avatar Aug 04 '19 15:08 SitiSchu

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

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:

phoenisx avatar Aug 16 '19 15:08 phoenisx