P
P
po472021-08-15 00:00:47
Docker
po47, 2021-08-15 00:00:47

yii2 project does not open in docker. File not found, what's the problem?

The project was successfully built in docker. Created php and ngnix containers. DB is not required yet.
docker-compose.yml

version: "3.7"
services: 
    nginx:
        image: nginx:latest
        ports:
            - "80:80"
            - "443:443"
        volumes:
            - ./configs/nginx/:/etc/nginx/conf.d:cached
            - ./www/:/var/www:cached
            - ./logs:/var/log/nginx:cached
        links: 
            - php
    php:
        build: ./images/php
        #links:
            #- percona
            #- redis

        volumes:
            - ./www:/var/www:cached

    #redis:
        #image: redis:latest
        #ports:
           # - "6379:6379"
        #links:
            #- percona

    #percona:
        #image: percona:8.0.20-11
        #ports:
            #- "3306:3306"


localhost in browser: blank page with File not found message.
localhost/web/index and other url combinations tried, same message.

The feeling that the url just does not lead there. The web has a file index.
Screen structure61182eea2ab88339087333.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question