1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

docker access

This commit is contained in:
Robin Appelman 2022-01-11 17:42:23 +01:00
commit 0985b4adce
2 changed files with 6 additions and 1 deletions

View file

@ -12,5 +12,8 @@ groupadd -g $GID haze
useradd -m -u $UID -g $GID haze useradd -m -u $UID -g $GID haze
chown -R haze:haze /home/haze chown -R haze:haze /home/haze
groupadd docker -g $(stat --format "%g" /var/run/docker.sock)
usermod -a -G docker haze
/usr/local/sbin/php-fpm & /usr/local/sbin/php-fpm &
/etc/init.d/nginx start /etc/init.d/nginx start

View file

@ -151,7 +151,9 @@ pub fn default_mappings<'a>() -> impl IntoIterator<Item = Mapping<'a>> {
Mapping::new(Sources, ".htaccess", "/var/www/html/.htaccess") Mapping::new(Sources, ".htaccess", "/var/www/html/.htaccess")
.file() .file()
.read_only(), .read_only(),
Mapping::new(Absolute, "/var/run/docker.sock", "/var/run/docker.sock"), Mapping::new(Absolute, "/var/run/docker.sock", "/var/run/docker.sock")
.file()
.dont_create(),
]; ];
IntoIterator::into_iter(mappings) IntoIterator::into_iter(mappings)
} }