Skip to content

Commit

Permalink
fixes to docker ports pgcat
Browse files Browse the repository at this point in the history
  • Loading branch information
DaMandal0rian committed Jan 20, 2025
1 parent da0effb commit 2dd337c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ services:
volumes:
- "./indexers/db/pgcat.toml:/etc/pgcat/pgcat.toml"
ports:
- "5432:5432"
- "9930:9930"
- "127.0.0.1:5432:5432"
- "127.0.0.1:9930:9930"
healthcheck:
test: ["CMD", "pgcat", "--version"]
interval: 10s
Expand All @@ -101,7 +101,7 @@ services:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_MAX_CONNECTIONS: 500
ports:
- "${DB_PORT}:6432"
- "127.0.0.1:${DB_PORT}:6432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
Expand Down
4 changes: 1 addition & 3 deletions indexers/db/pgcat.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# General pooler settings
[general]
# What IP to run on, 0.0.0.0 means accessible from everywhere.
host = "0.0.0.0"
host = "127.0.0.1"

# Port to run on, same as PgBouncer used in this example.
port = 5432
Expand Down Expand Up @@ -111,5 +111,3 @@ servers = [
]
# Database name (e.g. "postgres")
database = "postgres"

database = "postgres"

0 comments on commit 2dd337c

Please sign in to comment.