Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docker): set up a local shared postgres for development #1272

Merged
merged 4 commits into from Sep 26, 2023

Conversation

orhun
Copy link
Contributor

@orhun orhun commented Sep 25, 2023

Description of change

This PR updates Makefile/docker-compose file for creating a local/shared Postgres database called "control DB" for development.

I also realized we already have a shared Postgres at /dev/tcp/postgres/5432 which begs the question do we still need this control DB?

How has this been tested? (if applicable)

N/a

Copy link
Contributor

@oddgrd oddgrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Just one nit.

@@ -30,6 +30,22 @@ services:
resource-recorder:
ports:
- 8007:8000
depends_on:
- auth
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: The .dev.yml file will be combined with the docker-compose.yml into docker-compose.rendered.yml for local development, so we don't need to specify the auth dependency here. I see we did the same thing for logger in this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker-compose.dev.yml Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@orhun orhun requested a review from oddgrd September 26, 2023 07:37
@oddgrd oddgrd merged commit 7159f9c into shuttle-hq:main Sep 26, 2023
30 of 33 checks passed
iulianbarbu pushed a commit to GugaGongadze/shuttle that referenced this pull request Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants