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" } } }
标签:执行,service,crontab,hyperf,docker,main,true 来源: https://www.cnblogs.com/chenkg/p/16437101.html