More Podman tweaks.

This commit is contained in:
Buster Neece 2023-02-11 15:29:20 -06:00
parent 4e2d1b5677
commit d6ed137b72
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
3 changed files with 6 additions and 3 deletions

View File

@ -7,5 +7,4 @@ services:
restart: 'no'
entrypoint: docker_installer
command: install
user: root
privileged: true

View File

@ -194,7 +194,6 @@ services:
- backups:/var/azuracast/backups
- acme:/var/azuracast/acme
- db_data:/var/lib/mysql
user: root
restart: unless-stopped
ulimits:
nofile:

View File

@ -367,11 +367,16 @@ final class InstallCommand extends Command
unset($service);
}
// Remove web updater if disabled or in Podman mode.
// Remove web updater if disabled.
if (!$azuracastEnv->getAsBool(Environment::ENABLE_WEB_UPDATER, true)) {
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);
file_put_contents($dockerComposePath, $yamlRaw);