Skip to content

Commit 7359ddf

Browse files
committed
Enable nginx service only
1 parent 10f97a4 commit 7359ddf

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

php/EE/Migration/SiteContainers.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,7 @@ public static function enable_support_containers( $site_url, $site_fs_path ) {
249249
throw new \Exception( sprintf( '%s does not exist.', $site_fs_path ) );
250250
}
251251

252-
// get site services to enable except 'mailhog' and 'postfix'.
253-
$launch = EE::launch( 'docker-compose config --services' );
254-
$site_services = explode( PHP_EOL, trim( $launch->stdout ) );
255-
$services_to_enable = array_diff( $site_services, [ 'mailhog', 'postfix' ] );
256-
$services_to_enable = implode( ' ', $services_to_enable );
257-
258-
$command = sprintf( 'docker-compose --project-name=%s up -d %s', $project_name, $services_to_enable );
252+
$command = sprintf( 'docker-compose --project-name=%s up -d nginx', $project_name );
259253
if ( ! EE::exec( $command ) ) {
260254
throw new \Exception( sprintf( 'Unable to create support container for %s', $site_url ) );
261255
}

0 commit comments

Comments
 (0)