Docker Community Forums

Share and learn in the Docker community.

Connection reset by peer: from webdevops/php-apache:ubuntu-12.04

hello everyone, this is the code of my docker-compose.yaml file:

version: '3.7'

services:
 web: 
  image: webdevops/php-apache:ubuntu-12.04
  restart: always
  environment:
   WEB_DOCUMENT_ROOT: /app
   PHP_MEMORY_LIMIT: -1
   PHP_POST_MAX_SIZE: 800MB
   PHP_UPLOAD_MAX_FILESIZE: 800MB
  build:
   context: ./file
   dockerfile: dockerfile
  ports: 
   - '8081:80'
  volumes:
   - ./www:/app

 db:
  image: mysql
  command: --default-authentication-plugin=mysql_native_password
  restart: always
  environment:
   MYSQL_ROOT_PASSWORD: <my password>
  volumes:
   - ./db-dati:/var/lib/mysql
   - ./db-dati/dump:/docker-entrypoint-initdb.d
   
 phpmyadmin:
  image: phpmyadmin/phpmyadmin
  restart: always
  environment:
   MYSQL_ROOT_PASSWORD: <my password>
  volumes:
  ports:
   - '8089:80'
  environment:
   UPLOAD_LIMIT: 800MB

it seems that everything works, I dumped a database, the phpinfo page function, but when I go to load my site, I get this error:

[Code]
[Tue Mar 17 14:30:57 2020] [error] [client 172.21.0.1] (104) Connection reset by peer: FastCGI: comm with server “/ usr / lib / cgi-bin / php-fcgi” aborted: read failed

[Tue Mar 17 14:30:57 2020] [error] [client 172.21.0.1] FastCGI: incomplete headers (0 bytes) received from server “/ usr / lib / cgi-bin / php-fcgi” docker.vm: 80 172.21.0.1
[17 / Mar / 2020: 14: 30: 57 +0000] “GET / HTTP / 1.1” 500 636 “-” "Mozilla / 5.0 (Windows NT 10.0; Win64; x64; rv: 74.0) Gecko / 20100101 Firefox / 74.0 "
[httpd: access] localhost: 80 172.21.0.1 - - [17 / Mar / 2020: 14: 30: 57 +0000] “GET / HTTP / 1.1” 500 bytesIn: 695 bytesOut: 636 reqTime: 0
[17-Mar-2020 14:30:57] WARNING: [pool www] child 124 exited on signal 11 (SIGSEGV) after 1092.455278 seconds from start
[17-Mar-2020 14:30:57] NOTICE: [pool www] child 231 started
[/ Code]

How can I solve the problem?
Thanks so much