Skip to content

Commit

Permalink
Merge pull request #240 from jolicode/update-traefik-from-2-to-3
Browse files Browse the repository at this point in the history
Upgrade Traefik from 2 to 3
  • Loading branch information
lyrixx authored Oct 11, 2023
2 parents 3e231df + 873efe8 commit 918c4b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .castor/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function about(): void
if (!preg_match('{^Host\\(`(?P<hosts>.*)`\\)$}', $router['rule'], $matches)) {
continue;
}
$hosts = explode('`, `', $matches['hosts']);
$hosts = explode('`) || Host(`', $matches['hosts']);
$urls = [...$urls, ...$hosts];
}
}
Expand Down Expand Up @@ -144,7 +144,7 @@ function docker_compose(array $subCommand, Context $c = null, bool $withBuilder
$c ??= get_context();

$domains = [variable('root_domain'), ...variable('extra_domains')];
$domains = '`' . implode('`, `', $domains) . '`';
$domains = '`' . implode('`) || Host(`', $domains) . '`';

$c = $c
->withTimeout(null)
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 4.0.0 (not released yet)

* Upgrade Traefik from v2.7 to v3.0
* Migrate from Invoke to Castor
* Add a dockerfile linter
* Do not store certificates in the router image
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/docker/services/router/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM traefik:v2.7
FROM traefik:v3.0

COPY traefik /etc/traefik

Expand Down

0 comments on commit 918c4b1

Please sign in to comment.