docker 执行


命令   docker-compose -f ./build.yaml up -d

build.yaml  文件内容

 

 

{ "version": "2.1", "services": { "main-service": { "image": "hyperf/hyperf:8.0-alpine-v3.15-swoole", "container_name": "main-service", "privileged": true, "restart": "always", "volumes": [ "D:/docker/qdfz/main-service:/main-service" ], "ports": [ "9502:9502" ], "stdin_open": true, "tty": true, "networks": [ "default-network" ] }, "crontab-service": { "image": "hyperf/hyperf:8.0-alpine-v3.15-swoole", "container_name": "crontab-service", "privileged": true, "restart": "always", "volumes": [ "D:/docker/qdfz/crontab-service:/crontab-service" ], "ports": [ "9509:9509" ], "stdin_open": true, "tty": true, "networks": [ "default-network" ] } }, "networks": { "default-network": { "driver": "bridge" } } }

 

原创文章,作者:,如若转载,请注明出处:https://blog.ytso.com/270992.html

(0)
上一篇 2022年7月2日
下一篇 2022年7月2日

相关推荐

发表回复

登录后才能评论