diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php
index d722d6b..555169f 100644
--- a/core/lib/Drupal/Core/DrupalKernel.php
+++ b/core/lib/Drupal/Core/DrupalKernel.php
@@ -560,10 +560,6 @@ public function discoverServiceProviders() {
     if ($container_yamls = Settings::get('container_yamls')) {
       $this->serviceYamls['site'] = $container_yamls;
     }
-    $site_services_yml = $this->getSitePath() . '/services.yml';
-    if (file_exists($site_services_yml) && is_readable($site_services_yml)) {
-      $this->serviceYamls['site'][] = $site_services_yml;
-    }
   }
 
   /**
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php
index 7cc10be..5f8b8ce 100644
--- a/sites/default/default.settings.php
+++ b/sites/default/default.settings.php
@@ -595,6 +595,13 @@
 # $config['system.performance']['fast_404']['html'] = '<!DOCTYPE html><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL "@path" was not found on this server.</p></body></html>';
 
 /**
+ * Load services definition file.
+ */
+if (file_exists(__DIR__ . '/services.yml')) {
+  $settings['container_yamls'][] = __DIR__ . '/services.yml';
+}
+
+/**
  * Load local development override configuration, if available.
  *
  * Use settings.local.php to override variables on secondary (staging,
