Skip to content
Snippets Groups Projects
Commit 2bd6a09d authored by jurgenhaas's avatar jurgenhaas
Browse files

Improve update and restart of Traefik container

parent 7bceb7c7
No related branches found
Tags v1.7.0
No related merge requests found
Pipeline #
......@@ -185,7 +185,9 @@ class Handler {
],
];
file_put_contents($traefikFile, Yaml::dump($traefik, 9, 2));
exec('docker-compose -f ' . $traefikFile . ' --project-name traefik restart');
exec('docker network create ' . $options['projectname'] . '_default');
exec('docker-compose -f ' . $traefikFile . ' --project-name traefik stop');
exec('docker-compose -f ' . $traefikFile . ' --project-name traefik up -d');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment