部分内容来自于这里
cd image
docker build . -t coreseek:latest
A: docker run
B: docker-compose
C: k8s 我这里选择B方式
busybox容器只是用来测试,可以删掉
cd deploy
vim docker-compose.yml
docker-compose up -d
导入的方式有很多,这里使用命令行
cat documents.sql | mysql -h**** -P3306 -uroot -proot -d sphinx
docker-compose up -d
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c46c9b05f5ff busybox "/bin/sh -c 'sleep 3…" About a minute ago Up About a minute busybox
4dadc1b9591f coreseek:latest "/entrypoint.sh" About a minute ago Up About a minute 0.0.0.0:9312->9312/tcp coreseek
5ec827535945 mysql:5.7.27 "docker-entrypoint.s…" About a minute ago Up About a minute 0.0.0.0:3306->3306/tcp, 33060/tcp mysql