docker4drupal: 404 error when using latest traefik version

I’m getting a 404 error when trying to view a Drupal site using the latest version. It looks like nginx and PHP aren’t connecting:

Attaching to ld8blocks_php_1
php_1      | [27-Mar-2017 08:30:06] NOTICE: fpm is running, pid 1
php_1      | [27-Mar-2017 08:30:06] NOTICE: ready to handle connections
Attaching to ld8blocks_nginx_1
nginx_1    | nginx: [emerg] host not found in upstream "php:9000" in /etc/nginx/nginx.conf:60

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (15 by maintainers)

Most upvoted comments

Whilst trying to set up a copy/dev site commerce-kickstart docker-compose.yml up -d copied my database in via the db services put my index.php var/www/html . ( I chmod 777 settings.php changed $base url . drupal.docker.localhost:8000 created the mysql database the same as sister on Ubuntu Ec2) . I did I miss a .sh file ? to be run or is this a drupal ship ? Error message PDOException: SQLSTATE[HY000] [2002] Connection refused in db_table_exists() (line 2764 of /var/www/html/includes/database/database.inc).function db_table_exists($table) {
return Database::getConnection()->schema()->tableExists($table);
}