Cloud VM: mount data to /var/lib/docker (#8)
Infrastructure / Check and run Ansbile playbooks (push) Successful in 1m31s
Details
Infrastructure / Check and run Ansbile playbooks (push) Successful in 1m31s
Details
Since Nextcloud AIO manages itself and uses docker volumes, the easiest way to persisty all data in a separate disk is to just mount it to `/var/lib/docker`. This is still an easier long-term solution than managing the entire stack manually - we can always migrate (relatively) easily in the future anyway. Reviewed-on: #8
This commit is contained in:
parent
68aff49459
commit
21c6b627a8
|
@ -35,14 +35,8 @@
|
||||||
- name: Mount data partition
|
- name: Mount data partition
|
||||||
ansible.posix.mount:
|
ansible.posix.mount:
|
||||||
src: /dev/disk/by-path/pci-0000:00:05.0-scsi-0:0:0:1-part1
|
src: /dev/disk/by-path/pci-0000:00:05.0-scsi-0:0:0:1-part1
|
||||||
path: /mnt/data
|
path: /var/lib/docker
|
||||||
fstype: ext4
|
fstype: ext4
|
||||||
opts: rw,errors=remount-ro,x-systemd.growfs
|
opts: rw,errors=remount-ro,x-systemd.growfs
|
||||||
state: mounted
|
state: mounted
|
||||||
become: true
|
become: true
|
||||||
- name: Set data partition permissions
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: /mnt/data
|
|
||||||
owner: debian
|
|
||||||
group: debian
|
|
||||||
become: true
|
|
||||||
|
|
|
@ -9,7 +9,6 @@ docker run \
|
||||||
--name nextcloud-aio-mastercontainer \
|
--name nextcloud-aio-mastercontainer \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
--publish 8080:8080 \
|
--publish 8080:8080 \
|
||||||
--env NEXTCLOUD_DATADIR=/mnt/data/nextcloud \
|
|
||||||
--env NEXTCLOUD_UPLOAD_LIMIT=16G \
|
--env NEXTCLOUD_UPLOAD_LIMIT=16G \
|
||||||
--env NEXTCLOUD_MAX_TIME=7200 \
|
--env NEXTCLOUD_MAX_TIME=7200 \
|
||||||
--env APACHE_PORT=11000 \
|
--env APACHE_PORT=11000 \
|
||||||
|
|
Loading…
Reference in New Issue