【发布时间】:2020-07-06 16:33:33
【问题描述】:
我找不到我将文件 index.php 放在哪里,以便 ngnix 可以解释我的文件。
所有容器都在工作,当我把localhost:8080 nginx 工作
这是我的 docker-compose.yml
web:
image: nginx
volumes:
- ./templates:/etc/nginx/templates
ports:
- "8080:8080"
environment:
- NGINX_HOST=foobar.com
- NGINX_PORT=8080
php:
image: php:7.0-fpm
expose:
- 9000
volumes_from:
- app
links:
- elastic
app:
image: php:7.0-fpm
volumes:
- .:/src
elastic:
image: elasticsearch:2.3
volumes:
- ./elasticsearch/data:/usr/share/elasticsearch/data
- ./elasticsearch/logs:/usr/share/elasticsearch/logs
expose:
- "9200"
ports:
- "9200:9200"
谁能帮帮我
【问题讨论】:
标签: php docker nginx docker-compose