Skip to content

Commit a328b7c

Browse files
updates to docker compose file for testing with pg locally
1 parent b21d4b5 commit a328b7c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

compose.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
volumes:
1010
- ./postgres:/data/postgres
1111
ports:
12-
- "5432:5432"
12+
- "5932:5432"
1313
restart: always
1414
pgadmin:
1515
profiles: ["all", "db", "infra"]
@@ -30,23 +30,23 @@ services:
3030
- postgres
3131
guardrails-api:
3232
profiles: ["all", "api"]
33-
image: guardrails-api:latest
3433
build:
3534
context: .
3635
dockerfile: Dockerfile
3736
args:
3837
PORT: "8000"
38+
GUARDRAILS_TOKEN: ${GUARDRAILS_TOKEN:-changeme}
3939
ports:
4040
- "8000:8000"
4141
environment:
4242
# APP_ENVIRONMENT: local
4343
# AWS_PROFILE: dev
4444
# AWS_DEFAULT_REGION: us-east-1
45-
# PGPORT: 5432
46-
# PGDATABASE: postgres
47-
# PGHOST: postgres
48-
# PGUSER: ${PGUSER:-postgres}
49-
# PGPASSWORD: ${PGPASSWORD:-changeme}
45+
PGPORT: 5432
46+
PGDATABASE: postgres
47+
PGHOST: postgres
48+
PGUSER: ${PGUSER:-postgres}
49+
PGPASSWORD: ${PGPASSWORD:-changeme}
5050
NLTK_DATA: /opt/nltk_data
5151
# OTEL_PYTHON_TRACER_PROVIDER: sdk_tracer_provider
5252
# OTEL_SERVICE_NAME: guardrails-api
@@ -68,8 +68,8 @@ services:
6868
# OTEL_EXPORTER_OTLP_METRICS_ENDPOINT: http://otel-collector:4317
6969
# OTEL_EXPORTER_OTLP_LOGS_ENDPOINT: http://otel-collector:4317
7070
# OTEL_PYTHON_LOG_FORMAT: "%(msg)s [span_id=%(span_id)s]"
71-
# depends_on:
72-
# - postgres
71+
depends_on:
72+
- postgres
7373
# - otel-collector
7474
opensearch-node1:
7575
profiles: ["all", "otel", "infra"]

0 commit comments

Comments
 (0)