-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 806 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (33 loc) · 806 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
version: '3'
services:
postgre9_1:
image: postgres:9.6.21
container_name: postgres9_1
volumes:
- ./postgre9_1:/var/lib/postgresql/data/
environment:
POSTGRES_PASSWORD: admin@123
POSTGRES_USER: postgres
TZ: "Asia/Tehran"
networks:
postgre:
ipv4_address: 172.21.0.2
postgre9_2:
image: postgres:9.6.21
container_name: postgres9_2
volumes:
- ./postgre9_2:/var/lib/postgresql/data/
- ./restore_wal:/home
environment:
POSTGRES_PASSWORD: admin@123
POSTGRES_USER: postgres
TZ: "Asia/Tehran"
networks:
postgre:
ipv4_address: 172.21.0.3
networks:
postgre:
ipam:
driver: default
config:
- subnet: 172.21.0.0/16