我添加了
command: bash -c './wait-for-it.sh -t 4 -s php:9000 -- bash run-ssh-on-php.sh'
到我的docker-compose.yml
php:
build: docker/php
user: "$LOCAL_USER_ID:$LOCAL_GROUP_ID"
depends_on:
- mysql
- rabbitmq
- mail
- phantomjs
- data
volumes_from:
- data
ports:
- "9000:9000"
environment:
- SYMFONY_ENV
command: bash -c './wait-for-it.sh -t 4 -s php:9000 -- bash run-ssh-on-php.sh'
似乎根本没有执行,我怎么检查它是不是?我尝试添加“touch somefile”但没有创建