I
I
Igor2020-07-23 23:53:35
PHP
Igor, 2020-07-23 23:53:35

docker-compose not working in php script?

Even ashamed to write this topic.
The fact is that docker-compose does not work in a php script.
There are no errors.

The user from which the php script is launched is a member of the docker group.
Even docker-compose --version doesn't work

<?php

set_time_limit(3600);

$old_path = getcwd();

// Pull project
echo shell_exec("git pull origin develop");
chdir('/var/www/epsyteam/data/epsy-api/');
echo shell_exec("docker-compose up -d --build --remove-orphans");


What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2020-07-23
@IgorPI

most likely on the way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question