Updated nextcloud to work dynamically with www-data ID and GID

This commit is contained in:
2023-07-24 22:02:51 +02:00
parent 680fedaae0
commit 74587b66a8
5 changed files with 41 additions and 11 deletions
+22 -7
View File
@@ -6,19 +6,22 @@ volumes:
driver_opts:
type: none
o: bind
device: /srv/dev-disk-by-uuid-f3ca381b-e85a-4348-8086-833317c5d96e/dockerstorage/nextcloud/home
device: /nctest/home
# device: /srv/dev-disk-by-uuid-f3ca381b-e85a-4348-8086-833317c5d96e/dockerstorage/nextcloud/home
ncdb:
driver: local
driver_opts:
type: none
o: bind
device: /srv/dev-disk-by-uuid-f3ca381b-e85a-4348-8086-833317c5d96e/dockerstorage/nextcloud/database
device: /nctest/db
# device: /srv/dev-disk-by-uuid-f3ca381b-e85a-4348-8086-833317c5d96e/dockerstorage/nextcloud/database
ncdata:
driver: local
driver_opts:
type: none
o: bind
device: /srv/dev-disk-by-uuid-f3ca381b-e85a-4348-8086-833317c5d96e/dockerstorage/nextcloud/storage
device: /nctest/storage
# device: /srv/dev-disk-by-uuid-f3ca381b-e85a-4348-8086-833317c5d96e/dockerstorage/nextcloud/storage
services:
@@ -35,7 +38,11 @@ services:
- MYSQL_USER=nextcloud
nextcloud:
build: ./nc-fpm
build:
context: ./nc-fpm
args:
UID: ${MUID}
GID: ${MGID}
restart: always
links:
- db
@@ -50,17 +57,25 @@ services:
- REDIS_HOST=redis
nginx:
build: ./nginx
build:
context: ./nginx
args:
UID: ${MUID}
GID: ${MGID}
restart: always
ports:
- 8888:80
- 8899:80
links:
- nextcloud
volumes:
- nchome:/var/www/html:z,ro
redis:
image: redis:latest
build:
context: ./redis
args:
UID: ${MUID}
GID: ${MGID}
restart: always
cron: