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

#9 Name containers explicitly

parent e9517f69
No related branches found
No related tags found
1 merge request!3Merging develop into main
Pipeline #542798 passed
...@@ -147,6 +147,7 @@ class Traefik { ...@@ -147,6 +147,7 @@ class Traefik {
'version' => '3.3', 'version' => '3.3',
'services' => [ 'services' => [
'traefik' => [ 'traefik' => [
'container_name' => 'traefik',
'image' => 'traefik:2.7', 'image' => 'traefik:2.7',
'command' => [ 'command' => [
'--api=true', '--api=true',
...@@ -190,6 +191,7 @@ class Traefik { ...@@ -190,6 +191,7 @@ class Traefik {
]; ];
if ($this->addon_portainer) { if ($this->addon_portainer) {
$config['services']['portainer'] = [ $config['services']['portainer'] = [
'container_name' => 'portainer',
'image' => 'portainer/portainer-ce:2.11.1', 'image' => 'portainer/portainer-ce:2.11.1',
'command' => '-H unix:///var/run/docker.sock', 'command' => '-H unix:///var/run/docker.sock',
'restart' => 'unless-stopped', 'restart' => 'unless-stopped',
...@@ -221,6 +223,7 @@ class Traefik { ...@@ -221,6 +223,7 @@ class Traefik {
$config['services']['traefik']['ports'][] = '9900:9900'; $config['services']['traefik']['ports'][] = '9900:9900';
$config['services']['traefik']['ports'][] = '9901:9901'; $config['services']['traefik']['ports'][] = '9901:9901';
$config['services']['hub-agent'] = [ $config['services']['hub-agent'] = [
'container_name' => 'hub-agent',
'image' => 'ghcr.io/traefik/hub-agent-traefik:v0.7.0', 'image' => 'ghcr.io/traefik/hub-agent-traefik:v0.7.0',
'command' => [ 'command' => [
'run', 'run',
......
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