windows10中docker desktop安装使用Meilisearch全文搜索引擎服务流程步骤
windows10+docker环境作为开发测试环境还是非常方便的,下面介绍一下在该环境下Meilisearch全文搜索引擎安装使用的流程步骤。
拉取最新的Meilisearch镜像
C:\Users\htz>docker pull getmeili/meilisearch:latest
latest: Pulling from getmeili/meilisearch
latest: Pulling from getmeili/meilisearch
a0d0a0d46f8b: Pull complete
00a069bb4647: Pull complete
3ac4468f896e: Pull complete
Digest: sha256:51869c3695071b754ba42160ad92b198492e08fa445a008a2ab203c5052a1baa
Status: Downloaded newer image for getmeili/meilisearch:latest
docker.io/getmeili/meilisearch:latest
查看一下镜像
C:\Users\htz>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
dockers_php74 latest 1fe86121e25a 6 weeks ago 505MB
dockers_php81 latest 584c3cb26556 6 weeks ago 512MB
mysql latest 43fcfca0776d 6 weeks ago 449MB
redis latest 2460522297a1 6 weeks ago 117MB
nginx latest 2d389e545974 6 weeks ago 142MB
rabbitmq management 6c3c2a225947 10 months ago 253MB
getmeili/meilisearch latest d9d9cb7a7c66 11 months ago 64.7MB
启动容器
C:\Users\htz>docker run -d -p17700:7700 --name meilisearch -v C:\Users\htz\dockers\meilisearch\data.ms:/data.ms -e MEILI_MASTER_KEY=zongscan --privileged=true getmeili/meilisearch
2ce6313d6fc5b5cdc4d80bb04b9973695d469427a751afb6b9dba9270b64da9f
查看容器
C:\Users\htz>docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2ce6313d6fc5 getmeili/meilisearch "tini -- /bin/sh -c …" 11 seconds ago Up 10 seconds 0.0.0.0:17700->7700/tcp meilisearch
56d9413dd6fb nginx "/docker-entrypoint.…" 6 weeks ago Exited (255) 4 weeks ago 0.0.0.0:80->80/tcp, 0.0.0.0:8080-8081->8080-8081/tcp nginx-server
a1fb9e5bd42c mysql "docker-entrypoint.s…" 6 weeks ago Exited (255) 4 weeks ago 0.0.0.0:3306->3306/tcp, 33060/tcp mysql-server
5b843ff1a7eb rabbitmq:management "docker-entrypoint.s…" 6 weeks ago Exited (255) 4 weeks ago 4369/tcp, 5671/tcp, 0.0.0.0:5672->5672/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp rabbitmq-server
e022d6b6080d dockers_php74 "docker-php-entrypoi…" 6 weeks ago Exited (255) 4 weeks ago 0.0.0.0:9000->9000/tcp php74
aa2e4a72a008 redis "docker-entrypoint.s…" 6 weeks ago Exited (0) 4 weeks ago redis-server
7a42a110cd43 dockers_php81 "docker-php-entrypoi…" 6 weeks ago Exited (255) 4 weeks ago 0.0.0.0:9001->9000/tcp php81
测试效果
在浏览器上打开以下链接登录一下
http://localhost:17700/
最后
后面我会添加进docker-compose.yml中编排上
有兴趣的可以留意一下 我的dnmp自用环境git地址
https://www.zongscan.com/demo333/95879.html
https://gitee.com/houtizong/dockers
相关文章