-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (37 loc) · 772 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (37 loc) · 772 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
43
app_lua:
build: nginx
ports:
- "8080:8080"
links:
- db_master
- db_slave
db_master:
restart: always
image: sameersbn/postgresql:9.4-11
environment:
- DEBUG=false
- DB_USER=user1
- DB_PASS=password1
- DB_NAME=db1
- DB_UNACCENT=false
- REPLICATION_MODE=master
- REPLICATION_USER=replicator
- REPLICATION_PASS=replpassword
- REPLICATION_SSLMODE=
ports:
- "5432"
volumes:
- /tmp/docker/postgresql:/var/lib/postgresql
db_slave:
restart: always
image: sameersbn/postgresql:9.4-11
links:
- db_master:master
environment:
- DEBUG=false
- REPLICATION_MODE=slave
- REPLICATION_HOST=master
- REPLICATION_USER=replicator
- REPLICATION_PASS=replpassword
ports:
- "5432"