説明に
が、私はこのファイルが見つかりません - nginxのドッカー
nginx.conf
server {
listen 80;
index index.php index.html;
root /var/www/public;
location/{
try_files $uri /index.php?$args;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass app:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
ドッキングウィンドウ-compose.yaml
とのドッキングウィンドウコンテナを持っていますversion: '2'
services:
# The Application
app:
build:
context: ./
dockerfile: app.dockerfile
working_dir: /var/www
volumes:
- ./:/var/www
environment:
- "DB_PORT=3306"
- "DB_HOST=database"
# The Web Server
web:
build:
context: ./
dockerfile: web.dockerfile
working_dir: /var/www
volumes_from:
- app
ports:
- 85:80
# The Database
database:
image: mysql:5.6
volumes:
- dbdata:/var/lib/mysql
environment:
- "MYSQL_DATABASE=homestead"
- "MYSQL_USER=homestead"
- "MYSQL_PASSWORD=secret"
- "MYSQL_ROOT_PASSWORD=secret"
ports:
- "33062:3306"
volumes:
dbdata:
ドッキングウィンドウを構築し、成功し
docker-compose up -d
docker_app_1 is up-to-date
docker_database_1 is up-to-date
Recreating docker_web_1 ...
Recreating docker_web_1 ... done
開始するようだが、私が見つかりません
ファイルを取得保管。
質問
はどのようにしてこれをさらに行くとデバッグのでしょうか?
私はこの時点でどのような提案もありません。
これについてのヒント/提案/ヘルプは非常に高く評価されます!あなたはコンテナ内になることを行う一度
docker-composeファイルを共有してもよろしいですか? – Sergiu
@Sergiu:要求に応じて、私は** docker-compose.yaml **を投稿に含めます。 – ihue