Skip to content

Commit

Permalink
Feature/Add a separate elasticsearch container (#135)
Browse files Browse the repository at this point in the history
* Add a separate elasticsearch container

* Update workspace and groups
  • Loading branch information
evgeniy-antonyuk authored Jan 21, 2022
1 parent e5d2476 commit c5116af
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 8 deletions.
32 changes: 30 additions & 2 deletions docker-compose.groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ services:
- mysql_data:/var/lib/mysql
onlyoffice-community-server:
container_name: onlyoffice-community-server
image: onlyoffice/communityserver:11.0.0.1458
image: onlyoffice/communityserver:11.5.4.1582
depends_on:
- onlyoffice-mysql-server
- onlyoffice-elasticsearch
environment:
- ONLYOFFICE_CORE_MACHINEKEY=core_secret
- CONTROL_PANEL_PORT_80_TCP=80
Expand All @@ -28,6 +29,8 @@ services:
- MYSQL_SERVER_HOST=onlyoffice-mysql-server
- MYSQL_SERVER_USER=onlyoffice_user
- MYSQL_SERVER_PASS=onlyoffice_pass
- ELASTICSEARCH_SERVER_HOST=onlyoffice-elasticsearch
- ELASTICSEARCH_SERVER_HTTPPORT=9200
networks:
- onlyoffice
ports:
Expand All @@ -44,11 +47,35 @@ services:
- community_letsencrypt:/etc/letsencrypt
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- ./certs:/var/www/onlyoffice/Data/certs
onlyoffice-elasticsearch:
image: onlyoffice/elasticsearch:7.9.0
container_name: onlyoffice-elasticsearch
restart: always
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m -Dlog4j2.formatMsgNoLookups=true"
- "indices.fielddata.cache.size=30%"
- "indices.memory.index_buffer_size=30%"
networks:
- onlyoffice
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65535
hard: 65535
volumes:
- es_data:/usr/share/elasticsearch/data
expose:
- "9200"
- "9300"
onlyoffice-control-panel:
container_name: onlyoffice-control-panel
depends_on:
- onlyoffice-community-server
image: onlyoffice/controlpanel:2.9.0.351
image: onlyoffice/controlpanel:3.0.2.395
environment:
- ONLYOFFICE_CORE_MACHINEKEY=core_secret
expose:
Expand All @@ -74,3 +101,4 @@ volumes:
controlpanel_data:
controlpanel_log:
mysql_data:
es_data:
34 changes: 31 additions & 3 deletions docker-compose.workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ services:
- mysql_data:/var/lib/mysql
onlyoffice-community-server:
container_name: onlyoffice-community-server
image: onlyoffice/communityserver:11.0.0.1458
image: onlyoffice/communityserver:11.5.4.1582
depends_on:
- onlyoffice-mysql-server
- onlyoffice-document-server
- onlyoffice-mail-server
- onlyoffice-elasticsearch
environment:
- ONLYOFFICE_CORE_MACHINEKEY=core_secret
- CONTROL_PANEL_PORT_80_TCP=80
Expand All @@ -41,6 +42,8 @@ services:
- MAIL_SERVER_DB_NAME=onlyoffice_mailserver
- MAIL_SERVER_DB_USER=onlyoffice_mailserver_user
- MAIL_SERVER_DB_PASS=onlyoffice_mailserver_user_pass
- ELASTICSEARCH_SERVER_HOST=onlyoffice-elasticsearch
- ELASTICSEARCH_SERVER_HTTPPORT=9200
networks:
- onlyoffice
ports:
Expand All @@ -58,9 +61,33 @@ services:
- document_data:/var/www/onlyoffice/DocumentServerData
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- ./certs:/var/www/onlyoffice/Data/certs
onlyoffice-elasticsearch:
image: onlyoffice/elasticsearch:7.9.0
container_name: onlyoffice-elasticsearch
restart: always
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m -Dlog4j2.formatMsgNoLookups=true"
- "indices.fielddata.cache.size=30%"
- "indices.memory.index_buffer_size=30%"
networks:
- onlyoffice
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65535
hard: 65535
volumes:
- es_data:/usr/share/elasticsearch/data
expose:
- "9200"
- "9300"
onlyoffice-document-server:
container_name: onlyoffice-document-server
image: onlyoffice/documentserver:6.0.2
image: onlyoffice/documentserver:6.4.2.6
stdin_open: true
tty: true
restart: always
Expand Down Expand Up @@ -110,7 +137,7 @@ services:
- onlyoffice-document-server
- onlyoffice-mail-server
- onlyoffice-community-server
image: onlyoffice/controlpanel:2.9.0.351
image: onlyoffice/controlpanel:3.0.2.395
environment:
- ONLYOFFICE_CORE_MACHINEKEY=core_secret
expose:
Expand Down Expand Up @@ -143,3 +170,4 @@ volumes:
controlpanel_data:
controlpanel_log:
mysql_data:
es_data:
34 changes: 31 additions & 3 deletions docker-compose.workspace_enterprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ services:
- mysql_data:/var/lib/mysql
onlyoffice-community-server:
container_name: onlyoffice-community-server
image: onlyoffice/communityserver:11.0.0.1458
image: onlyoffice/communityserver:11.5.4.1582
depends_on:
- onlyoffice-mysql-server
- onlyoffice-document-server
- onlyoffice-mail-server
- onlyoffice-elasticsearch
environment:
- ONLYOFFICE_CORE_MACHINEKEY=core_secret
- CONTROL_PANEL_PORT_80_TCP=80
Expand All @@ -41,6 +42,8 @@ services:
- MAIL_SERVER_DB_NAME=onlyoffice_mailserver
- MAIL_SERVER_DB_USER=onlyoffice_mailserver_user
- MAIL_SERVER_DB_PASS=onlyoffice_mailserver_user_pass
- ELASTICSEARCH_SERVER_HOST=onlyoffice-elasticsearch
- ELASTICSEARCH_SERVER_HTTPPORT=9200
networks:
- onlyoffice
ports:
Expand All @@ -58,9 +61,33 @@ services:
- document_data:/var/www/onlyoffice/DocumentServerData
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- ./certs:/var/www/onlyoffice/Data/certs
onlyoffice-elasticsearch:
image: onlyoffice/elasticsearch:7.9.0
container_name: onlyoffice-elasticsearch
restart: always
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m -Dlog4j2.formatMsgNoLookups=true"
- "indices.fielddata.cache.size=30%"
- "indices.memory.index_buffer_size=30%"
networks:
- onlyoffice
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65535
hard: 65535
volumes:
- es_data:/usr/share/elasticsearch/data
expose:
- "9200"
- "9300"
onlyoffice-document-server:
container_name: onlyoffice-document-server
image: onlyoffice/documentserver-ee:6.0.2
image: onlyoffice/documentserver-ee:6.4.2.6
stdin_open: true
tty: true
restart: always
Expand Down Expand Up @@ -110,7 +137,7 @@ services:
- onlyoffice-document-server
- onlyoffice-mail-server
- onlyoffice-community-server
image: onlyoffice/controlpanel:2.9.0.351
image: onlyoffice/controlpanel:3.0.2.395
environment:
- ONLYOFFICE_CORE_MACHINEKEY=core_secret
expose:
Expand Down Expand Up @@ -143,3 +170,4 @@ volumes:
controlpanel_data:
controlpanel_log:
mysql_data:
es_data:

0 comments on commit c5116af

Please sign in to comment.