Lamalle
Répertoire de données
Création du répertoire chiffré :
truncate -s 3T /data/nextcloud-lamalle.luks
chown nextcloud:nextcloud nextcloud-lamalle.luks
sudo cryptsetup luksFormat nextcloud-lamalle.luks
sudo cryptsetup open nextcloud-lamalle.luks nextcloud-lamalle
sudo mkfs.ext4 -m0 -Lencrypted /dev/mapper/nextcloud-lamalle
Monter le répertoire :
sudo cryptsetup open /data/nextcloud-lamalle.luks nextcloud-lamalle
sudo mount /dev/mapper/nextcloud-lamalle /mnt/nextcloud-lamalle
Démonter le répertoire :
sudo mount /mnt/nextcloud-lamalle
sudo cryptsetup close nextcloud-lamalle
Docker
podman pod create --name lamalle --restart=unless-stopped -p 127.0.0.1:1312:80
podman create --name lamalle-mariadb-10.6 --pod lamalle \
--restart=unless-stopped \
-v /mnt/nextcloud-lamalle/home/db:/var/lib/mysql:Z \
-e MYSQL_USER=nextcloud \
-e MYSQL_DATABASE=nextcloud \
-e MYSQL_PASSWORD= \
-e MYSQL_ROOT_PASSWORD= \
mariadb:10.6
podman create --name lamalle-nextcloud-28.0.5 --pod lamalle \
--restart=unless-stopped \
-v /mnt/nextcloud-lamalle/home/nextcloud:/var/www/html:Z \
-e MYSQL_USER=nextcloud \
-e MYSQL_DATABASE=nextcloud \
-e MYSQL_PASSWORD= \
-e MYSQL_HOST=127.0.0.1 \
nextcloud:28.0.5
No Comments