Updated thinkcentre nextcloud compose

This commit is contained in:
--set 2024-03-26 16:06:45 +01:00
parent 76a7ef8642
commit 1509572b73
2 changed files with 3 additions and 23 deletions

View File

@ -11,24 +11,18 @@ services:
- app:/var/www/html - app:/var/www/html
- /mnt/data/nextcloud/files:/var/www/html/data - /mnt/data/nextcloud/files:/var/www/html/data
- /mnt/data/nextcloud/config:/var/www/html/config - /mnt/data/nextcloud/config:/var/www/html/config
- /mnt/data/nextcloud/config/nextcloud.log:/var/www/html/data/nextcloud.log
environment: environment:
- MYSQL_PASSWORD=${MYSQL_PASSWORD} - MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE} - MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER} - MYSQL_USER=${MYSQL_USER}
- MYSQL_HOST=${MYSQL_HOST} - MYSQL_HOST=${MYSQL_HOST}
healthcheck:
test: ["CMD", "../lan-healthcheck.sh"]
interval: 20s
retries: 5
timeout: 10s
networks: networks:
# - mariadb_default - mariadb_default
- proxy - proxy
networks: networks:
#mariadb_default: mariadb_default:
# external: true external: true
proxy: proxy:
name: proxy name: proxy
external: true external: true

View File

@ -1,14 +0,0 @@
#!/bin/bash
source .env
CONTAINER_NAME="mariadb-main"
# Check if the Docker container is running on the remote host
if ssh "$USER@$MYSQL_HOST" "docker ps -q -f name=$CONTAINER_NAME" >/dev/null 2>&1; then
echo "Docker container $CONTAINER_NAME is running on $MYSQL_HOST"
exit 0
else
echo "Docker container $CONTAINER_NAME is not running on $MYSQL_HOST"
exit 1
fi