Quentinvarquet / docker-phpservermonitor

2 stars 54 forks source link

Unable to establish database connection... in /var/www/html/src/bootstrap.php on line 92 #8

Closed docb7 closed 4 years ago

docb7 commented 4 years ago

When I install as described, I always get this error. Do I need to edit the Dockerfile as well, esp. the following lines?

User Environment Variables

ENV PSM_REFRESH_RATE_SECONDS 90 ENV PSM_AUTO_CONFIGURE true ENV PSM_PHP_DEBUG false ENV MYSQL_HOST database ENV MYSQL_USER phpservermonitor ENV MYSQL_PASSWORD YOUR_PASSWORD ENV MYSQL_DATABASE phpservermonitor ENV MYSQL_DATABASEPREFIX psm or should it be enough to just follow the steps described in the Readme.md

docb7 commented 4 years ago

Puh, after 5 hours of work (I just began to learn Docker) I did get it going.

  1. I deletet all UserEnvironmentVariables in the Dockerfile under #User Environment Variables
  2. I editet the docker-compose.yaml:

`version: '2' services:

phpservermonitor: image: phpservermonitor:latest container_name: phpservermonitor restart: always environment: