mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-26 09:20:54 -04:00
fix(proxy): name Traefik logrotate sidecar container
This commit is contained in:
@@ -72,6 +72,7 @@ function applyTrafficAnalyticsToProxyConfigArray(Server $server, array $config):
|
||||
if ($enabled && ! $server->isSwarm() && ! isDev()) {
|
||||
$proxyPath = $server->proxyPath();
|
||||
$config['services']['traefik-logrotate'] = [
|
||||
'container_name' => 'coolify-proxy-logrotate',
|
||||
'image' => 'alpine:3.20',
|
||||
'restart' => RESTART_MODE,
|
||||
'volumes' => [
|
||||
|
||||
@@ -111,6 +111,7 @@ it('adds a traefik-logrotate sidecar with copytruncate and the proxy mount when
|
||||
$config = Yaml::parse($yaml);
|
||||
$sidecar = $config['services']['traefik-logrotate'];
|
||||
|
||||
expect($sidecar['container_name'])->toBe('coolify-proxy-logrotate');
|
||||
expect($sidecar['image'])->toBe('alpine:3.20');
|
||||
expect($sidecar['volumes'])->toContain($server->proxyPath().':/traefik');
|
||||
expect($sidecar['labels'])->toContain('coolify.managed=true');
|
||||
|
||||
Reference in New Issue
Block a user