Skip to content

Commit 5dff7f3

Browse files
committed
docker-compose.yml: Lock down
Fixes issue raised in #223, though by preventing outside database connections rather than randomizing the password Note that leapchat.org never used docker-compose.yml and thus never exposed the database port to the outside.
1 parent 3e5e2eb commit 5dff7f3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

docker-compose.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
postgres:
55
image: postgres:latest
66
ports:
7-
- 5432:5432
7+
- 127.0.0.1:5432:5432
88
environment:
99
- POSTGRES_PASSWORD=superuser
1010
- POSTGRES_USER=superuser
@@ -14,7 +14,7 @@ services:
1414
postgrest:
1515
image: erasche/postgrest:latest
1616
ports:
17-
- "3000:3000"
17+
- 3000:3000
1818
environment:
1919
PGUSER: superuser
2020
PGPASSWORD: superuser
@@ -25,7 +25,3 @@ services:
2525
DB_ANON_ROLE: postgres
2626
depends_on:
2727
- postgres
28-
adminer:
29-
image: adminer
30-
ports:
31-
- 8082:8080

0 commit comments

Comments
 (0)