Развернуть локалку на docker под windows


#1

Доброго времени суток, возникла проблема, при попытке резвернуть локальный сайт через docker
Делается все это под ОС Windows
Используется PHP 7.3 (так же пытался под 7.4)
Docker 3.1
пользовались этим https://github.com/cscart/development-docker/tree/master/config

Суть в том что локалка редиректит на основной сайт
хоть в файле хост все прописано
сама ошибка в логах:

/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
*2021/02/15 05:33:48 [error] 21#21: 2 FastCGI sent in stderr: "PHP message: Pimple\Exception\UnknownI
dentifierException: Identifier “cache” is not defined. in /app/www/app/lib/vendor/pimple/pimple/src/P
imple/Container.php:101
Stack trace:
#0 /app/www/app/Tygh/Application.php(135): Pimple\Container->offsetGet(‘cache’)
#1 /app/www/app/functions/fn.init.php(916): Tygh\Application->offsetGet(‘cache’)
#2 /app/www/app/functions/fn.init.php(1147): fn_check_cache(Array)
#3 /app/www/init.php(175): fn_init(Array)
#4 /app/www/admin.php(25): require(’/app/www/init.p…’)
#5 {main}" while reading response header from upstream, client: 172.18.0.1, server: _, request: “GET
/admin.php HTTP/1.1”, upstream: “fastcgi://172.18.0.3:9000”, host:
172.18.0.1 - - [15/Feb/2021:05:33:48 +0000] “GET /admin.php HTTP/1.1” 500 3665 “-” “Mozilla/5.0 (Wind
ows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36”
172.18.0.1 - - [15/Feb/2021:05:33:54 +0000] “GET / HTTP/1.1” 301 5 “-” “Mozilla/5.0 (Windows NT 10.0;
Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36”
*2021/02/15 05:40:43 [error] 21#21: 7 FastCGI sent in stderr: "PHP message: Pimple\Exception\UnknownI
dentifierException: Identifier “cache” is not defined. in /app/www/app/lib/vendor/pimple/pimple/src/P
imple/Container.php:101
Stack trace:
#0 /app/www/app/Tygh/Application.php(135): Pimple\Container->offsetGet(‘cache’)
#1 /app/www/app/functions/fn.init.php(916): Tygh\Application->offsetGet(‘cache’)
#2 /app/www/app/functions/fn.init.php(1147): fn_check_cache(Array)
#3 /app/www/init.php(175): fn_init(Array)
#4 /app/www/admin.php(25): require(’/app/www/init.p…’)
#5 {main}" while reading response header from upstream, client: 172.18.0.1, server: _, request: “GET
/admin.php HTTP/1.1”, upstream: “fastcgi://172.18.0.3:9000”, host:
172.18.0.1 - - [15/Feb/2021:05:40:43 +0000] “GET /admin.php HTTP/1.1” 500 3665 “-” “Mozilla/5.0 (Wind
ows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36”
172.18.0.1 - - [15/Feb/2021:05:40:52 +0000] “GET / HTTP/1.1” 301 5 “-” “Mozilla/5.0 (Windows NT 10.0;
Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36”
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
172.18.0.1 - - [15/Feb/2021:05:49:13 +0000] “GET / HTTP/1.1” 301 5 “-” “Mozilla/5.0 (Windows NT 10.0;
Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36”
*2021/02/15 05:49:18 [error] 21#21: 1 FastCGI sent in stderr: "PHP message: Pimple\Exception\UnknownI
dentifierException: Identifier “cache” is not defined. in /app/www/app/lib/vendor/pimple/pimple/src/P
imple/Container.php:101
Stack trace:
#0 /app/www/app/Tygh/Application.php(135): Pimple\Container->offsetGet(‘cache’)
#1 /app/www/app/functions/fn.init.php(916): Tygh\Application->offsetGet(‘cache’)
#2 /app/www/app/functions/fn.init.php(1147): fn_check_cache(Array)
#3 /app/www/init.php(175): fn_init(Array)
#4 /app/www/admin.php(25): require(’/app/www/init.p…’)
#5 {main}" while reading response header from upstream, client: 172.18.0.1, server: _, request: “GET
/admin.php HTTP/1.1”, upstream: “fastcgi://172.18.0.3:9000”, host:
172.18.0.1 - - [15/Feb/2021:05:49:18 +0000] “GET /admin.php HTTP/1.1” 500 3665 “-” “Mozilla/5.0 (Wind
ows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36”