Skip to content

Commit a3b2c2d

Browse files
committed
Use opensearch
1 parent 2a6b99a commit a3b2c2d

File tree

4 files changed

+9
-14
lines changed

4 files changed

+9
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The docker image installs the following packages on your system:
3939
|LiteSpeed Cache|[Latest from WordPress.org](https://wordpress.org/plugins/litespeed-cache/)|
4040
|ACME|[Latest from ACME official](https://github.com/acmesh-official/get.acme.sh)|
4141
|Magento2|[2.4.7](https://devdocs.magento.com/guides/v2.4/release-notes/open-source-2-4-2.html)|
42-
|elasticsearch|[7.9.1](https://hub.docker.com/_/elasticsearch)|
42+
|OpenSearch|[Latest version](https://hub.docker.com/r/opensearchproject/opensearch)|
4343
|WordPress|[Latest from WordPress](https://wordpress.org/download/)|
4444
|phpMyAdmin|[Latest from dockerhub](https://hub.docker.com/r/bitnami/phpmyadmin/)|
4545

bin/container/appinstallctl.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -725,13 +725,11 @@ install_magento(){
725725
--language=en_US \
726726
--currency=USD \
727727
--timezone=America/Chicago \
728-
--use-rewrites=1 \
729728
--backend-frontname=${MA_BACK_URL} \
730-
--search-engine=elasticsearch7 \
731-
--elasticsearch-host=elasticsearch \
732-
--elasticsearch-port=9200
729+
--opensearch-host=opensearch
733730
./bin/magento config:set web/unsecure/base_url http://${DOMAIN}/
734731
./bin/magento config:set web/secure/base_url https://${DOMAIN}/
732+
./bin/magento indexer:reindex
735733
if [ ${?} = 0 ]; then
736734
echoG 'Magento install finished'
737735
else

bin/container/pkginstallctl.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ case ${1} in
102102
systemd)
103103
install_systemd
104104
;;
105-
elasticsearch)
106-
install_elasticsearch
107-
;;
108105
git)
109106
install_git
110107
;;

docker-compose.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,21 @@ services:
4141
environment:
4242
DATABASE_HOST: mysql
4343
restart: always
44-
elasticsearch:
45-
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.28
44+
opensearch:
45+
image: opensearchproject/opensearch:latest
4646
environment:
4747
- discovery.type=single-node
48-
#- xpack.security.enabled=false
49-
#- xpack.security.enrollment.enabled=false
48+
- DISABLE_INSTALL_DEMO_CONFIG=true
49+
- DISABLE_SECURITY_PLUGIN=true
5050
ports:
5151
- 127.0.0.1:9200:9200
5252
volumes:
53-
- esdata:/usr/share/elasticsearch/data
53+
- opensearch-data:/usr/share/opensearch/data
5454
restart: always
5555
networks:
5656
- default
5757
volumes:
58-
esdata:
58+
opensearch-data:
5959
networks:
6060
default:
6161
driver: bridge

0 commit comments

Comments
 (0)