Skip to content

Commit

Permalink
Update docker-compose.yml and k8s deployment examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Grigorev committed Nov 25, 2024
1 parent de7cef6 commit 54ddf12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 8 additions & 4 deletions deploy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ spec:
args:
- --config-file=/app/conf/pgscv.yaml
# env:
# - name: PGSCV_DISABLE_COLLECTORS
# value: "system"
# - name: PGSCV_LISTEN_ADDRESS
# value: "0.0.0.0:9890"
# - name: DATABASE_DSN
# value: "postgresql://postgres:password@127.0.0.1:5432/postgres"
# - name: PGSCV_DISABLE_COLLECTORS
# value: "system"
# - name: POSTGRES_DSN
# value: "postgres://postgres:password@127.0.0.1:5432/postgres"
# - name: PGBOUNCER_DSN
# value: "postgres://pgbouncer:password@127.0.0.1:6432/pgbouncer"
ports:
- name: http
containerPort: 9890
Expand Down Expand Up @@ -93,6 +95,8 @@ metadata:
data:
pgscv.yaml: |
listen_address: 0.0.0.0:9890
disable_collectors:
- system
services:
"postgres:5432":
service_type: "postgres"
Expand Down
4 changes: 3 additions & 1 deletion deploy/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ services:
environment:
PGSCV_DISABLE_COLLECTORS: "system"
PGSCV_LISTEN_ADDRESS: "0.0.0.0:9890"
DATABASE_DSN: "postgresql://postgres:password@dbhost:5432/postgres"
POSTGRES_DSN: "postgresql://pgscv:secretpassword@example.org:5432/postgres"
#PGBOUNCER_DSN: "postgresql://pgscv:secretpassword@example.org:6432/pgbouncer"
#PATRONI_URL: "http://localhost:8008"
# command:
# - --config-file=/app/conf/pgscv.yaml
# volumes:
Expand Down

0 comments on commit 54ddf12

Please sign in to comment.