Не запускается сайт на Docker PhpStorm Windows 7

Acvarif 21 января 2020 г. 17:10

Спасибо за подсказку ./docker-php-ext-xdebug.ini
Контейнер запустился
/usr/lib/python2.7/dist-packages/supervisor/options.py:298: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
'Supervisord is running as root and it is searching '
2020-01-21 13:45:55,360 CRIT Supervisor running as root (no user in config file)
2020-01-21 13:45:55,360 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
2020-01-21 13:45:55,385 INFO RPC interface 'supervisor' initialized
2020-01-21 13:45:55,386 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2020-01-21 13:45:55,386 INFO supervisord started with pid 6
2020-01-21 13:45:56,388 INFO spawned: 'apache2' with pid 9
2020-01-21 13:45:57,576 INFO success: apache2 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-01-21 13:45:57,600 INFO exited: apache2 (exit status 0; expected)
В соответствии с конфигурацией сайт должен запуститься по адресу test.com:8089 но в браузере пусто

Еще раз конфигурация
apache2.conf

ServerName test.com
ServerAlias www.test.com test.com

DocumentRoot /var/www/html
DirectoryIndex index.php

CustomLog /var/www/html/log/test.com.bytes bytes
CustomLog /var/www/html/log/test.com.log combined
ErrorLog  /var/www/html/log/test.com.error.log

<Directory "/var/www/html">
    AllowOverride All
    Order Allow,Deny
    Allow from All
    Require all granted

    <IfModule mod_rewrite.c>
        RewriteCond %{REQUEST_URI} \..+$
        RewriteCond %{REQUEST_URI} !\.html$
        RewriteRule .* - [L]
        # the others are redirected to the front web controller
        RewriteRule ^(.*)$ index.php [QSA,L]
    </IfModule>
</Directory>

<Directory "/var/www/html">
    AllowOverride All
    Allow from All
</Directory>


docker-compose.yml

version: '2'

volumes:
test-db:
driver: local

services:

mysql:
image: mysql:5.5
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: test
MYSQL_PASSWORD: test
MYSQL_DATABASE: test
ports:
- 3356:3306
volumes:
- test-db:/var/lib/mysql

php:
build:
dockerfile: docker/Dockerfile
context: .
ports:
- 8089:80
volumes:
- .:/var/www/html
- ./docker/apache2.conf:/etc/apache2/sites-available/000-default.conf
- ./docker/apache2.conf:/etc/apache2/sites-enabled/000-default.conf
- ./docker/.htaccess:/var/www/html/.htaccess
- ./docker/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./docker/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf

phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin_test
restart: always
links:
- mysql:db
ports:
- "8004:80"
environment:
MYSQL_USER: test
MYSQL_PASSWORD: test
MYSQL_ROOT_PASSWORD: root
PMA_ARBITRARY: 1

        **Dockerfile**FROM php:7.0-apache

RUN apt-get update -y && apt-get install -y libzip-dev zip memcached libpng-dev supervisor curl libxml2-dev libjpeg-dev libfreetype6-dev
RUN docker-php-ext-install gd

RUN docker-php-ext-configure zip --with-libzip
RUN docker-php-ext-install pdo_mysql bcmath zip simplexml
RUN pecl install xdebug-2.6.1 && docker-php-ext-enable xdebug
COPY ./docker-php-ext-xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini

COPY ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf

RUN apt-get update -y && apt-get install -y libpng-dev

RUN docker-php-ext-install gd opcache

RUN a2enmod rewrite

ENTRYPOINT /usr/bin/supervisord

Подскажите пожалуйста где копать. В хосте прописано 127.0.0.1 test.com