Samagra-Development / WarpSQL

WarpSQL
https://samagra-development.github.io/WarpSQL/
Apache License 2.0
15 stars 30 forks source link

warpsql/docker-compose: Added pgwatch2 service #78

Closed jayanth-kumar-morem closed 1 year ago

jayanth-kumar-morem commented 1 year ago
  1. Added pgwatch2 service to the Docker Compose file.
  2. Configured pgwatch2 to use the cybertec/pgwatch2-postgres:latest image.
  3. Exposed port 3000 for the pgwatch2 service.
  4. Set up PW2_ADHOC_CONN_STR environment variable for pgwatch2 to connect to the timescaledb service.
  5. Configured pgwatch2 to restart automatically in case of failure.
  6. Added timescaledb as a dependency for pgwatch2 to ensure timescaledb starts before pgwatch2.

Fixes: #52

CC: @singhalkarun

singhalkarun commented 1 year ago

Hey @jayanth-kumar-morem this looks good. Let's move the POSTGRES_USER and POSTGRES_PASSWORD to environment (let's also add a sample.env for the same)

jayanth-kumar-morem commented 1 year ago

Yes @singhalkarun , I beleive we should clean this. I'll create an another ticket to clean this as its unrelated cleanup to the current one.

singhalkarun commented 1 year ago

Yes @singhalkarun , I beleive we should clean this. I'll create an another ticket to clean this as its unrelated cleanup to the current one.

Sure, merging this one.