-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (42 loc) · 1010 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
42 lines (42 loc) · 1010 Bytes
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
version: '3.7'
services:
master:
container_name: "master"
image: postgres:14
expose:
- 5432
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=postgres
volumes:
- postgres_data1:/var/lib/postgresql/data
replica1:
container_name: "replica1"
image: postgres:14
expose:
- 5433
ports:
- "5433:5432"
environment:
- POSTGRES_PASSWORD=postgres
volumes:
- postgres_data2:/var/lib/postgresql/data
replica2:
container_name: "replica2"
image: postgres:14
expose:
- 5434
ports:
- "5434:5432"
environment:
- POSTGRES_PASSWORD=postgres
volumes:
- postgres_data3:/var/lib/postgresql/data
volumes:
postgres_data1:
driver: local
postgres_data2:
driver: local
postgres_data3:
driver: local