Update 'root/usr/libexec/apps/nextcloud/nextcloud.sh'

main
ben 1 year ago
parent e195d2a17d
commit 51fb6cf8b0

@ -31,15 +31,34 @@ do_install_detail() {
touch /opt/docker2/compose/nextcloud-app/docker-compose.yml
cat > /opt/docker2/compose/nextcloud-app/docker-compose.yml <<EOF
version: '3.7'
version: '2'
volumes:
nextcloud:
db:
services:
db:
image: mariadb:10.5
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${GEN_PASS}
- MYSQL_PASSWORD=${GEN_PASS}
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: $IMAGE_NAME
restart: always
ports:
- ${LAN_IP}:${port}:80
links:
- db
volumes:
- /opt/docker2/compose/nextcloud-app/data:/var/www/html
- ./data:/var/www/html
environment:
- MYSQL_PASSWORD=${GEN_PASS}
- MYSQL_DATABASE=nextcloud
@ -48,18 +67,8 @@ services:
labels:
plugsy.name: "Nextcloud"
plugsy.category: "Home"
plugsy.link: "http://${LAN_IP}:${port}"
db:
image: mariadb:10.5
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${GEN_PASS}
- MYSQL_PASSWORD=${GEN_PASS}
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
plugsy.icon: "@styled-icons/material-outlined/Cloud"
plugsy.link: "http://${LAN_IP}:8531"
EOF
docker-compose -f /opt/docker2/compose/nextcloud-app/docker-compose.yml up -d

Loading…
Cancel
Save