我有一个 nginx 和 php-fpm 容器。当我在项目中的 php 容器中并执行任何需要时间的命令(如 vendor/bin/behat 或 composer update)时,我单击 CTRL+C。我从容器中弹出。我不知道为什么.. 当我点击 CTRL+C 而不执行命令时,我没有问题。
任何的想法 ?
这是我的 docker-compose.yml 文件:
版本:'3'
服务:
nginx:
图片:nginx:最新
重启:总是
端口:
- “80:80”
卷:
- ./nginx/conf:/etc/nginx/custom_conf
- ./nginx/hosts:/etc/nginx/conf.d/
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./logs/nginx:/var/log/nginx
- ..:/var/www
网络:
我的网络:
ipv4_address: 10.5.0.31
网络:
建造: 。
重启:总是
端口:
- “9000:9000”
- “5001:5001”
卷:
- ./php/php.ini:/usr/local/etc/php/conf.d/30-php.ini
- ./php/app2.conf:/usr/local/etc/php/conf.d/app2.conf
- ./keys/:/var/www/.ssh
- ./custom-hosts:/etc/custom-hosts
- ..:/var/www
- ./supervisor/supervisord.conf:/etc/supervisor/supervisord.conf
- ./supervisor/conf/:/etc/supervisor/conf.d/
网络:
我的网络:
ipv4_address: 10.5.0.20
tty: 真的
D b:
构建:mysql
重启:总是
端口:
- “3306:3306” …