@@ -462,7 +462,7 @@ private function deploy_docker_compose_buildpack()
462
462
if ($ this ->env_filename ) {
463
463
$ command .= " --env-file {$ this ->workdir }/ {$ this ->env_filename }" ;
464
464
}
465
- $ command .= " --project-name {$ this ->application ->uuid } --project-directory {$ this ->workdir } -f {$ this ->workdir }{$ this ->docker_compose_location } build " ;
465
+ $ command .= " --project-name {$ this ->application ->uuid } --project-directory {$ this ->workdir } -f {$ this ->workdir }{$ this ->docker_compose_location } build --pull " ;
466
466
$ this ->execute_remote_command (
467
467
[executeInDocker ($ this ->deployment_uuid , $ command ), 'hidden ' => true ],
468
468
);
@@ -2031,23 +2031,6 @@ private function stop_running_container(bool $force = false)
2031
2031
}
2032
2032
}
2033
2033
2034
- private function build_by_compose_file ()
2035
- {
2036
- $ this ->application_deployment_queue ->addLogEntry ('Pulling & building required images. ' );
2037
- if ($ this ->application ->build_pack === 'dockerimage ' ) {
2038
- $ this ->application_deployment_queue ->addLogEntry ('Pulling latest images from the registry. ' );
2039
- $ this ->execute_remote_command (
2040
- [executeInDocker ($ this ->deployment_uuid , "docker compose --project-name {$ this ->application ->uuid } --project-directory {$ this ->workdir } pull " ), 'hidden ' => true ],
2041
- [executeInDocker ($ this ->deployment_uuid , "{$ this ->coolify_variables } docker compose --project-name {$ this ->application ->uuid } --project-directory {$ this ->workdir } build " ), 'hidden ' => true ],
2042
- );
2043
- } else {
2044
- $ this ->execute_remote_command (
2045
- [executeInDocker ($ this ->deployment_uuid , "{$ this ->coolify_variables } docker compose --project-name {$ this ->application ->uuid } --project-directory {$ this ->workdir } -f {$ this ->workdir }{$ this ->docker_compose_location } build " ), 'hidden ' => true ],
2046
- );
2047
- }
2048
- $ this ->application_deployment_queue ->addLogEntry ('New images built. ' );
2049
- }
2050
-
2051
2034
private function start_by_compose_file ()
2052
2035
{
2053
2036
if ($ this ->application ->build_pack === 'dockerimage ' ) {
0 commit comments