Skip to content

Commit

Permalink
Added docker detection
Browse files Browse the repository at this point in the history
  • Loading branch information
coldsource committed Mar 4, 2019
1 parent 000b726 commit 68dfc27
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions debian/etc/evqueue/conf/queueing.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,17 @@
* Authors: Nicolas Jean, Christophe Marti
*/

$QUEUEING = [
'tcp://localhost:5000'
];
// Detect if running in docker
if(is_file("/.dockerenv"))
{
$QUEUEING = [
'tcp://evqueue-core:5000'
];
}
else
{
$QUEUEING = [
'tcp://localhost:5000'
];
}
?>

0 comments on commit 68dfc27

Please sign in to comment.