Hi
I can not understand why but does not have a website configured via docker-compose
version: '3.1'
services:
nginx:
image: nginx:latest
ports:
- 80:80
- 443:443
volumes:
- ./hosts/mysite.local.conf:/etc/nginx/conf.d/mysite.local.conf
- ./www:/var/www
- ./www:/usr/share/nginx
- ./logs:/var/log/nginx
depends_on:
- php
settings ./hosts/mysite.local.conf
server {
server_name mysite.local www.mysite.local;
root /var/www/html/public;
listen 80;
location / {
index index.html index.htm index.php;
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
location php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
mysite.local opens in hosts all is registered, the service starts, 127.0.0.1 shows the initial page with nginx, there is a suspicion that the problem with the config of nginx or settings docker-compose ?
it says that everything is working actually.
Host machine is Linux?
ping mysite.local - work? - elian.Schmeler commented on April 19th 20 at 12:21