Skip to content

Commit 745f445

Browse files
Set new recommended values for postgres user and postgres db.
1 parent 0b34492 commit 745f445

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docker-compose.dev.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ services:
3131
# Not actually currently used. Just for testing purposes in development.
3232
pgbouncer:
3333
image: pgbouncer/pgbouncer:1.14.0
34-
environment: # DATABASES_* are defaults from judge0.conf
34+
environment: # DATABASES_* are the same as from judge0.conf
3535
- DATABASES_HOST=db
3636
- DATABASES_PORT=5432
37-
- DATABASES_USER=postgres
37+
- DATABASES_DBNAME=judge0
38+
- DATABASES_USER=judge0
3839
- DATABASES_PASSWORD=YourPasswordHere1234
39-
- DATABASES_DBNAME=postgres
4040
- PGBOUNCER_LISTEN_PORT=5432 # Set the same as Postgres
4141
restart: always
4242

judge0.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,11 @@ POSTGRES_PORT=
207207

208208
# Name of the database to use. Used only in production.
209209
# Default: postgres
210-
POSTGRES_DB=
210+
POSTGRES_DB=judge0
211211

212212
# User who can access this database. Used only in production.
213213
# Default: postgres
214-
POSTGRES_USER=
214+
POSTGRES_USER=judge0
215215

216216
# Password of the user. Cannot be blank. Used only in production.
217217
# Default: NO DEFAULT, YOU MUST SET YOUR PASSWORD

0 commit comments

Comments
 (0)