-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
57 lines (55 loc) · 1.56 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
services:
database:
container_name: oph-organisaatio-db
image: postgres:12.14
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=organisaatio
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- 5432:5432
command: ["postgres", "-c", "log_statement=all"]
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
database-test:
container_name: oph-organisaatio-test-db
image: postgres:12.14
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=organisaatio
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- 5433:5432
command: ["postgres", "-c", "log_statement=all"]
varda-rekisterointi-db:
container_name: varda-rekisterointi-db
image: postgres:15.7
environment:
- POSTGRES_USER=varda-rekisterointi
- POSTGRES_PASSWORD=varda-rekisterointi
- POSTGRES_DB=varda-rekisterointi
ports:
- "5438:5432"
command: ["postgres", "-c", "log_statement=all"]
healthcheck:
test: ["CMD-SHELL", "pg_isready -U varda-rekisterointi"]
interval: 10s
timeout: 5s
retries: 5
varda-rekisterointi-test-db:
container_name: varda-rekisterointi-test-db
image: postgres:15.7
environment:
- POSTGRES_USER=varda-rekisterointi
- POSTGRES_PASSWORD=varda-rekisterointi
- POSTGRES_DB=varda-rekisterointi
ports:
- "5439:5432"
command: ["postgres", "-c", "log_statement=all"]
volumes:
database-data: