Answer the question
In order to leave comments, you need to log in
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"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question