More Podman tweaks.
This commit is contained in:
parent
4e2d1b5677
commit
d6ed137b72
|
@ -7,5 +7,4 @@ services:
|
||||||
restart: 'no'
|
restart: 'no'
|
||||||
entrypoint: docker_installer
|
entrypoint: docker_installer
|
||||||
command: install
|
command: install
|
||||||
user: root
|
|
||||||
privileged: true
|
privileged: true
|
||||||
|
|
|
@ -194,7 +194,6 @@ services:
|
||||||
- backups:/var/azuracast/backups
|
- backups:/var/azuracast/backups
|
||||||
- acme:/var/azuracast/acme
|
- acme:/var/azuracast/acme
|
||||||
- db_data:/var/lib/mysql
|
- db_data:/var/lib/mysql
|
||||||
user: root
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ulimits:
|
ulimits:
|
||||||
nofile:
|
nofile:
|
||||||
|
|
|
@ -367,11 +367,16 @@ final class InstallCommand extends Command
|
||||||
unset($service);
|
unset($service);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove web updater if disabled or in Podman mode.
|
// Remove web updater if disabled.
|
||||||
if (!$azuracastEnv->getAsBool(Environment::ENABLE_WEB_UPDATER, true)) {
|
if (!$azuracastEnv->getAsBool(Environment::ENABLE_WEB_UPDATER, true)) {
|
||||||
unset($yaml['services']['updater']);
|
unset($yaml['services']['updater']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Podman privileged mode explicit specification.
|
||||||
|
if ($env->getAsBool('AZURACAST_PODMAN_MODE', false)) {
|
||||||
|
$yaml['services']['web']['privileged'] = 'true';
|
||||||
|
}
|
||||||
|
|
||||||
$yamlRaw = Yaml::dump($yaml, PHP_INT_MAX);
|
$yamlRaw = Yaml::dump($yaml, PHP_INT_MAX);
|
||||||
file_put_contents($dockerComposePath, $yamlRaw);
|
file_put_contents($dockerComposePath, $yamlRaw);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue