-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
132 lines (124 loc) · 3.63 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: '3.2'
services:
lb-haproxy:
container_name: lb-haproxy-lf720
build:
context: haproxy/.
dockerfile: Dockerfile
ports:
- '80:80'
- '8181:8181'
hostname: lb-haproxy.local
depends_on:
- liferay-720-node-1
- liferay-720-node-2
liferay-720-node-1:
container_name: liferay-720-node-1
build:
context: liferay/.
dockerfile: Dockerfile
environment:
- JDBC_READ_DRIVER=org.postgresql.Driver
- JDBC_READ_URL=jdbc:postgresql://postgres-lfr720:5432/lportal
- JDBC_READ_USERNAME=liferay
- JDBC_READ_PASSWORD=liferay
- JDBC_WRITE_DRIVER=org.postgresql.Driver
- JDBC_WRITE_URL=jdbc:postgresql://postgres-lfr720:5432/lportal
- JDBC_WRITE_USERNAME=liferay
- JDBC_WRITE_PASSWORD=liferay
- ES_OPERATIONMODE=REMOTE
- ES_CLUSTERNAME=elasticsearch
- ES_TRANSPORTADDRESSES=es-node-1-lfr720:9300
# - CLUSTER_UNICAST_FILENAME=jdbc_ping.xml
# - REDIS_URL=redis://redis-lfr720:6379
ports:
- '6080:8080'
- '21311:11311'
- '8001:8000'
hostname: liferay-720-node-1.local
volumes:
- lfr-720-dl-volume:/data/liferay/document_library
depends_on:
- postgres-lfr720
- redis-lfr720
- es-node-1-lfr720
- es-node-2-lfr720
command: ["/entrypoint.sh", "run"]
liferay-720-node-2:
container_name: liferay-720-node-2
build:
context: liferay/.
dockerfile: Dockerfile
environment:
- JDBC_READ_DRIVER=org.postgresql.Driver
- JDBC_READ_URL=jdbc:postgresql://postgres-lfr720:5432/lportal
- JDBC_READ_USERNAME=liferay
- JDBC_READ_PASSWORD=liferay
- JDBC_WRITE_DRIVER=org.postgresql.Driver
- JDBC_WRITE_URL=jdbc:postgresql://postgres-lfr720:5432/lportal
- JDBC_WRITE_USERNAME=liferay
- JDBC_WRITE_PASSWORD=liferay
- ES_OPERATIONMODE=REMOTE
- ES_CLUSTERNAME=elasticsearch
- ES_TRANSPORTADDRESSES=es-node-1-lfr720:9300
# - CLUSTER_UNICAST_FILENAME=jdbc_ping.xml
# - REDIS_URL=redis://redis-lfr720:6379
ports:
- '7080:8080'
- '31311:11311'
- '8002:8000'
hostname: liferay-720-node-2.local
volumes:
- lfr-720-dl-volume:/data/liferay/document_library
depends_on:
- postgres-lfr720
- redis-lfr720
- es-node-1-lfr720
- es-node-2-lfr720
command: ["/wait-for-node.sh", "liferay-720-node-1:8080", "--", "/entrypoint.sh", "run"]
postgres-lfr720:
container_name: postgres-lfr720
image: postgres:10.1-alpine
ports:
- '5432:5432'
environment:
- POSTGRES_PASSWORD=liferay
- POSTGRES_USER=liferay
- POSTGRES_DB=lportal
es-node-1-lfr720:
container_name: elastic-search-1-lfr720
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.0
environment:
- node.name=es-node-1-lfr720
- cluster.name=elasticsearch
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es-data1-lfr720:/usr/share/elasticsearch/data
ports:
- 9200:9200
es-node-2-lfr720:
container_name: elastic-search-2-lfr720
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.0
environment:
- node.name=es-node-2-lfr720
- cluster.name=elasticsearch
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es-data2-lfr720:/usr/share/elasticsearch/data
redis-lfr720:
container_name: redis-lfr720
image: redis:alpine
volumes:
lfr-720-dl-volume:
es-data1-lfr720:
es-data2-lfr720: