Skip to content

Commit dd775d1

Browse files
committed
Revert to TRUST method
1 parent aa4d8ce commit dd775d1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

docker-compose.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,24 +142,22 @@ services:
142142
["postgres", "-c", "max_connections=${POSTGRES_MAX_CONNECTIONS:-100}"]
143143
environment:
144144
POSTGRES_HOST_AUTH_METHOD: "trust"
145-
POSTGRES_USER: "postgres"
146-
POSTGRES_PASSWORD: "sentry"
147145
volumes:
148146
- "sentry-postgres:/var/lib/postgresql/data"
149147
pgbouncer:
150148
image: "edoburu/pgbouncer:v1.24.1-p1"
151149
healthcheck:
152150
<<: *healthcheck_defaults
153151
# Using default user "postgres" from sentry/sentry.conf.example.py or value of POSTGRES_USER if provided
154-
test: ["CMD-SHELL", "PGPASSWORD=\"sentry\" psql -U postgres -p 5432 -h 127.0.0.1 -tA -c \"select 1;\" -d postgres >/dev/null"]
152+
test: ["CMD-SHELL", "psql -U postgres -p 5432 -h 127.0.0.1 -tA -c \"select 1;\" -d postgres >/dev/null"]
155153
depends_on:
156154
postgres:
157155
<<: *depends_on-healthy
158156
environment:
159157
DB_USER: ${POSTGRES_USER:-postgres}
160-
DB_PASSWORD: sentry
161158
DB_HOST: postgres
162159
DB_NAME: postgres
160+
AUTH_TYPE: trust
163161
POOL_MODE: transaction
164162
ADMIN_USERS: postgres,sentry
165163
MAX_CLIENT_CONN: 10000

sentry/sentry.conf.example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def get_internal_network():
4747
"ENGINE": "sentry.db.postgres",
4848
"NAME": "postgres",
4949
"USER": "postgres",
50-
"PASSWORD": "sentry",
50+
"PASSWORD": "",
5151
"HOST": "pgbouncer",
5252
"PORT": "",
5353
}

0 commit comments

Comments
 (0)