Answer the question
In order to leave comments, you need to log in
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");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question