-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
挂在配置文件,为啥会变成目录呢? #499
Comments
我也是遇到此问题,我装了1个php7.2,然后再安装7.4,env和docker-compose.yml都按照示例来进行配置只是把挂载目录修改了一下,结果生成的php.ini 和php-fpm.conf均变成了目录,而非文件,烦请看看是否为bug? |
env文件内容 PHP74_VERSION=7.4.30 docker-compose.yml php74: |
.env我加入:
HYPERF_IMAGE=hyperf/hyperf:7.4-alpine-v3.11-swoole
HYPERF_PHP_CONF_FILE=./services/hyperf/php.ini
HYPERF_FPM_CONF_FILE=./services/hyperf/php-fpm.conf
HYPERF_LOG_DIR=./logs/hyperf
docker-compose.yml里面加入:
hyperf:
image: ${HYPERF_IMAGE}
container_name: hyperf
tty: true
privileged: true
expose:
- 9601 # http
- 9602 # websocket
volumes:
- ${SOURCE_DIR}:/www/:rw
- ${HYPERF_PHP_CONF_FILE}:/etc/php7/php.ini:ro
- ${HYPERF_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw
- ${HYPERF_LOG_DIR}:/var/log/php
working_dir: /www
restart: always
cap_add:
- SYS_PTRACE
networks:
- default
启动后
services文件夹里面 是hyperf/php.ini php.ini是目录,并不是配置文件。
请问这个php.ini应该事先创建么?
The text was updated successfully, but these errors were encountered: