Answer the question
In order to leave comments, you need to log in
Why does the script not find files in the docker container?
I'm trying to move from version 2 to version 3 of docker compose
, I corrected the file, everything is going, but when I run the script, it swears that the files were not found, the
autoloader does not work. I made something with the paths, I don’t understand what.
I'm just starting to understand docker, so don't judge too harshly
#docker-compose.yaml
version: '3.7'
services:
php:
container_name: ultra_php
build: docker/php
restart: always
volumes:
- ./:/var/www/ultra
command: sh ./docker/php/auto-start.sh
depends_on:
- db
nginx:
container_name: ultra_nginx
build: docker/nginx
restart: always
depends_on:
- php
volumes:
- type: bind
source: ./
target: /var/www/ultra
db:
image: mysql:5.6
container_name: ultra_db
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ultra
FROM nginx
COPY nginx.conf /etc/nginx/
RUN usermod -u 1000 www-data
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