Updated storage for nextcloud containers, removed the bindmounts and replaced nextcloud/storage with nextcloud_storage

Also, added a new video library to nextcloud building script
This commit is contained in:
2026-01-05 19:10:21 +01:00
parent 61ed19f8de
commit 975d6bfb67
2 changed files with 27 additions and 38 deletions
+26 -38
View File
@@ -1,32 +1,11 @@
volumes:
nchome:
driver: local
driver_opts:
type: none
o: bind
device: /srv/dev-disk-by-uuid-9033ccb2-df6d-46a3-9996-99a0d4d34688/nextcloud/home
ncdb:
driver: local
driver_opts:
type: none
o: bind
device: /srv/dev-disk-by-uuid-9033ccb2-df6d-46a3-9996-99a0d4d34688/nextcloud/database
ncdata:
driver: local
driver_opts:
type: none
o: bind
device: /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/nextcloud/storage
services: services:
db: db:
image: mariadb:10.6 image: mariadb:latest
restart: always restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW --log_bin_trust_function_creators=true
volumes: volumes:
- ncdb:/var/lib/mysql:Z - /srv/dev-disk-by-uuid-9033ccb2-df6d-46a3-9996-99a0d4d34688/nextcloud/database:/var/lib/mysql:Z
# - ./database:/var/lib/mysql
environment: environment:
- MYSQL_ROOT_PASSWORD=rootpw - MYSQL_ROOT_PASSWORD=rootpw
- MYSQL_PASSWORD=password - MYSQL_PASSWORD=password
@@ -34,28 +13,32 @@ services:
- MYSQL_USER=nextcloud - MYSQL_USER=nextcloud
aio-imaginary: aio-imaginary:
image: nextcloud/aio-imaginary:latest image: ghcr.io/nextcloud-releases/aio-imaginary:latest
restart: always restart: always
environment: environment:
- PORT=9000 - PORT=9000
ports: ports:
- 9999:9000 - 9999:9000
command: -concurrency 50 -enable-url-source command: -enable-url-source -enable-placeholder
cap_add:
- SYS_NICE
nextcloud: nextcloud:
build: build:
context: ./nc context: ./nc
args: args:
UID: ${MUID} UID: ${MUID}
GID: ${MGID} GID: ${MGID}
restart: always restart: always
ports: ports:
- 8888:80 - 8888:80
links: links:
- db - db
volumes: volumes:
- nchome:/var/www/html:z - /srv/dev-disk-by-uuid-9033ccb2-df6d-46a3-9996-99a0d4d34688/nextcloud/home:/var/www/html:z
- ncdata:/var/www/html/data # - ./nchome:/var/www/html
- /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/nextcloud_storage:/var/www/html/data
# - ./ncdata:/var/www/html/data
- /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/:/ex_storage/ - /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/:/ex_storage/
- /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/bands/fearium:/ex_storage/bands/fearium - /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/bands/fearium:/ex_storage/bands/fearium
- /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/bands/breakpointnine:/ex_storage/bands/breakpointnine - /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/bands/breakpointnine:/ex_storage/bands/breakpointnine
@@ -66,7 +49,8 @@ services:
- /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/repositories:/ex_storage/repositories - /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/repositories:/ex_storage/repositories
- /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/hwsw:/ex_storage/hwsw - /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/hwsw:/ex_storage/hwsw
- /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/timelapse:/ex_storage/timelapse - /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/timelapse:/ex_storage/timelapse
- /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/pictures:/ex_storage/pictures - /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/daf2000:/ex_storage/daf2000
environment: environment:
- MYSQL_PASSWORD=password - MYSQL_PASSWORD=password
@@ -81,7 +65,7 @@ services:
environment: environment:
- password=password - password=password
- username=nextcloud - username=nextcloud
- domain=vbchaos.nl - domain=mitscherlich.nl
- extra_params=--o:ssl.enable=true - extra_params=--o:ssl.enable=true
ports: ports:
- 9980:9980 - 9980:9980
@@ -102,9 +86,13 @@ services:
UID: ${MUID} UID: ${MUID}
GID: ${MGID} GID: ${MGID}
restart: always restart: always
links:
- db
volumes: volumes:
- nchome:/var/www/html:z - /srv/dev-disk-by-uuid-9033ccb2-df6d-46a3-9996-99a0d4d34688/nextcloud/home:/var/www/html:z
- ncdata:/var/www/html/data # - ./nchome:/var/www/html
- /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/nextcloud_storage:/var/www/html/data
# - ./ncdata:/var/www/html/data
- /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/:/ex_storage/ - /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/:/ex_storage/
- /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/bands/fearium:/ex_storage/bands/fearium - /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/bands/fearium:/ex_storage/bands/fearium
- /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/bands/breakpointnine:/ex_storage/bands/breakpointnine - /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/bands/breakpointnine:/ex_storage/bands/breakpointnine
@@ -115,7 +103,7 @@ services:
- /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/repositories:/ex_storage/repositories - /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/repositories:/ex_storage/repositories
- /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/hwsw:/ex_storage/hwsw - /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/hwsw:/ex_storage/hwsw
- /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/timelapse:/ex_storage/timelapse - /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/timelapse:/ex_storage/timelapse
- /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/pictures:/ex_storage/pictures - /srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/daf2000:/ex_storage/daf2000
environment: environment:
- MYSQL_PASSWORD=password - MYSQL_PASSWORD=password
+1
View File
@@ -9,6 +9,7 @@ RUN apt update \
&& apt -y install \ && apt -y install \
# libmagickcore-6.q16-6-extra \ # libmagickcore-6.q16-6-extra \
ffmpeg \ ffmpeg \
libavcodec-extra \
imagemagick \ imagemagick \
ghostscript \ ghostscript \
&& apt clean && apt clean