我有下面的docker composer文件,它似乎正在加载并且在8080上为phpmyadmin工作正常。但是我无法让这个应用程序为php工作?我收到一个错误的电话。
403禁止
在stderr中发送的FastCGI:"主要脚本未知"从上游读取响应头时,客户端:192.168.99.1,服务器:192.168.99.100,请求:" GET /index.php HTTP / 1.1",
docker yml file
nginx:
build: ./nginx/
ports:
- 80:80
links:
- php
volumes_from:
- app
php:
build: ./php/
expose:
- 9000
links:
- mysql
volumes_from:
- app
app:
image: php:7.0-fpm
volumes:
- ./:/var/www/html
command: "true"
mysql:
image: mysql:latest
volumes_from:
- data
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: project
MYSQL_USER: project
MYSQL_PASSWORD: project
data:
image: mysql:latest
volumes:
- /var/lib/mysql
command: "true"
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 8080:80
links:
- mysql
environment:
PMA_HOST: mysql