Skip to content

Commit 93c4763

Browse files
authored
Merge pull request #1405 from mrrobot47/fix/migration-of-proxy-container
Fix nginx-proxy container name in migration
2 parents 2a1bc0e + 1101ef1 commit 93c4763

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

php/EE/Migration/GlobalContainers.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,13 @@ public static function global_service_down( $service_name ) {
124124
* @return array
125125
*/
126126
public static function get_all_global_images_with_service_name() {
127+
128+
$launch = EE::launch( sprintf( 'docker ps -f "id=%s" --format={{.Names}}', EE_PROXY_TYPE ) );
129+
if ( 0 === $launch->return_code ) {
130+
$nginx_proxy = trim( $launch->stdout );
131+
}
127132
return [
128-
'easyengine/nginx-proxy' => EE_PROXY_TYPE,
133+
'easyengine/nginx-proxy' => $nginx_proxy,
129134
'easyengine/mariadb' => GLOBAL_DB_CONTAINER,
130135
'easyengine/redis' => GLOBAL_REDIS_CONTAINER,
131136
// 'easyengine/cron' => EE_CRON_SCHEDULER, //TODO: Add it to global docker-compose.

0 commit comments

Comments
 (0)