Updated thinkcentre nextcloud compose
This commit is contained in:
parent
76a7ef8642
commit
1509572b73
|
@ -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
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in New Issue