forked from prabhakar2020/aws_codedeploy_using_github
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (27 loc) · 746 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
29 lines (27 loc) · 746 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
version: '3'
services:
master_postgres:
image: postgres:latest
container_name: master_db
environment:
POSTGRES_USER: master_user
POSTGRES_PASSWORD: master_password
POSTGRES_DB: my_db
ports:
- "5432:5432"
volumes:
- ./master_postgres.conf:/etc/postgresql/postgresql.conf
- ./master_pg_hba.conf:/etc/postgresql/pg_hba.conf
slave_postgres:
image: postgres:latest
container_name: slave_db
environment:
POSTGRES_USER: slave_user
POSTGRES_PASSWORD: slave_password
ports:
- "5433:5432"
depends_on:
- master_postgres
volumes:
- ./slave_postgres.conf:/etc/postgresql/postgresql.conf
- ./slave_pg_hba.conf:/etc/postgresql/pg_hba.conf