-
Notifications
You must be signed in to change notification settings - Fork 1
Postgres fixes: Concurrency issue, connection leak, and fixes to guard CRUD operations #83
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
base: main
Are you sure you want to change the base?
Changes from 11 commits
4da9e8d
6e2a84d
b31e845
3877ac7
b21d4b5
a328b7c
a7aed37
01e8e0d
7e03f54
d901ba8
19f6813
20c664a
8950985
f700707
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ services: | |
| volumes: | ||
| - ./postgres:/data/postgres | ||
| ports: | ||
| - "5432:5432" | ||
| - "5932:5432" | ||
|
||
| restart: always | ||
| pgadmin: | ||
| profiles: ["all", "db", "infra"] | ||
|
|
@@ -30,23 +30,23 @@ services: | |
| - postgres | ||
| guardrails-api: | ||
| profiles: ["all", "api"] | ||
| image: guardrails-api:latest | ||
| build: | ||
| context: . | ||
| dockerfile: Dockerfile | ||
| args: | ||
| PORT: "8000" | ||
| GUARDRAILS_TOKEN: ${GUARDRAILS_TOKEN:-changeme} | ||
| ports: | ||
| - "8000:8000" | ||
| environment: | ||
| # APP_ENVIRONMENT: local | ||
| # AWS_PROFILE: dev | ||
| # AWS_DEFAULT_REGION: us-east-1 | ||
| # PGPORT: 5432 | ||
| # PGDATABASE: postgres | ||
| # PGHOST: postgres | ||
| # PGUSER: ${PGUSER:-postgres} | ||
| # PGPASSWORD: ${PGPASSWORD:-changeme} | ||
| PGPORT: 5432 | ||
| PGDATABASE: postgres | ||
| PGHOST: postgres | ||
| PGUSER: ${PGUSER:-postgres} | ||
| PGPASSWORD: ${PGPASSWORD:-changeme} | ||
|
Comment on lines
+45
to
+49
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm starting to think we should just have two different Dockfiles and compose files to run with PG vs config.py There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. agreed 👌🏼 |
||
| NLTK_DATA: /opt/nltk_data | ||
| # OTEL_PYTHON_TRACER_PROVIDER: sdk_tracer_provider | ||
| # OTEL_SERVICE_NAME: guardrails-api | ||
|
|
@@ -68,8 +68,8 @@ services: | |
| # OTEL_EXPORTER_OTLP_METRICS_ENDPOINT: http://otel-collector:4317 | ||
| # OTEL_EXPORTER_OTLP_LOGS_ENDPOINT: http://otel-collector:4317 | ||
| # OTEL_PYTHON_LOG_FORMAT: "%(msg)s [span_id=%(span_id)s]" | ||
| # depends_on: | ||
| # - postgres | ||
| depends_on: | ||
| - postgres | ||
| # - otel-collector | ||
| opensearch-node1: | ||
| profiles: ["all", "otel", "infra"] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.