Errors:
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.db: 'enviroment'
Unsupported config option for services.web: 'enviroment'
docker-compose.ymlversion: '3'
services:
web:
build: ./web
enviroment:
- APACHE_RUN_USER=www-data
volumes:
- ${APP_PATH_HOST}:${APP_PATH_CONTAINER}
ports:
- 8080:80
working_dir: ${APP_PATH_CONTAINER}
db:
image: mariadb
restart: always
enviroment:
MYSQL_ROOT_PASSWORD: 123456
volumes:
- ${DB_PATH_HOST}:/var/lib/mysql
adminer:
image: adminer
restart: always
ports:
- 8080:8080
composer:
image: composer:1.6
volumes:
- ${APP_PATH_HOST}:${APP_PATH_CONTAINER}
working_dir: ${APP_PATH_CONTAINER}
command: composer install
web/DockerfileFROM php:7.2-apache
RUN docker-php-ext-install \
pdo_mysql \
&& a2enmod \
rewrite
Еще есть папка database.
.env#PATHS
DB_PATH_HOST=./databases
APP_PATH_HOST=./myproject
APP_PATH_CONTAINER=/var/www/html/
Есть ли возможность посмотреть в чем ошибка?