Skip to content

Commit f876692

Browse files
authored
update docker-compose.yml just in case anyone's using it (#193)
1 parent 4dcec4e commit f876692

File tree

1 file changed

+15
-24
lines changed

1 file changed

+15
-24
lines changed

docker-compose.yml

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,24 @@
11
version: '3.7'
22

3+
x-shared-config: &shared_config
4+
environment:
5+
POSTGRES_HOST_AUTH_METHOD: "${POSTGRES_HOST_AUTH_METHOD:-scram-sha-256}"
6+
POSTGRES_USER: test_username
7+
POSTGRES_DB: test_database
8+
POSTGRES_PASSWORD: test_password
9+
ports:
10+
- 5432:5432
11+
312
services:
13+
psql-14:
14+
image: postgres:14
15+
<<: *shared_config
416
psql-13:
517
image: postgres:13
6-
user: postgres:postgres
7-
environment:
8-
POSTGRES_HOST_AUTH_METHOD: "${POSTGRES_HOST_AUTH_METHOD:-md5}"
9-
POSTGRES_USER: test_username
10-
POSTGRES_DB: test_database
11-
POSTGRES_PASSWORD: test_password
12-
ports:
13-
- 5432:5432
18+
<<: *shared_config
1419
psql-12:
1520
image: postgres:12
16-
user: postgres:postgres
17-
environment:
18-
POSTGRES_HOST_AUTH_METHOD: "${POSTGRES_HOST_AUTH_METHOD:-md5}"
19-
POSTGRES_USER: test_username
20-
POSTGRES_DB: test_database
21-
POSTGRES_PASSWORD: test_password
22-
ports:
23-
- 5432:5432
21+
<<: *shared_config
2422
psql-11:
2523
image: postgres:11
26-
user: postgres:postgres
27-
environment:
28-
POSTGRES_HOST_AUTH_METHOD: "${POSTGRES_HOST_AUTH_METHOD:-md5}"
29-
POSTGRES_USER: test_username
30-
POSTGRES_DB: test_database
31-
POSTGRES_PASSWORD: test_password
32-
ports:
33-
- 5432:5432
24+
<<: *shared_config

0 commit comments

Comments
 (0)