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