-
Notifications
You must be signed in to change notification settings - Fork 569
add codeinsights-db deployment #259
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
Conversation
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
| cpus: 4 | ||
| mem_limit: "2g" | ||
| environment: | ||
| - POSTGRES_PASSWORD=password |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our other db's do not set a password (at least at the docker-compose YAML level), why do we set one here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In our Postgres image we actually bake in this environment variable. We don't do it here because this is just a re-tagged TimescaleDB image.
daxmc99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| - "codeinsights-db:/data/" | ||
| networks: | ||
| - sourcegraph | ||
| restart: always |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason we didn't add health checks here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no good reason I can think of, probably I just forgot to do it.
This PR adds the codeinsights-db deployment, which is a TimescaleDB time series database deployment used for recording Code Insights data.
I have test both deployments start up as expected.
Fixes https://github.com/sourcegraph/sourcegraph/issues/17225
Checklist