fix healthcheck and add cache dir setup
This commit is contained in:
parent
578e5d2296
commit
0471467e64
@ -11,9 +11,6 @@ services:
|
|||||||
- plugins:/var/www/app/plugins.local
|
- plugins:/var/www/app/plugins.local
|
||||||
- icons:/var/www/app/feed-icons
|
- icons:/var/www/app/feed-icons
|
||||||
- themes:/var/www/app/themes.local
|
- themes:/var/www/app/themes.local
|
||||||
tmpfs:
|
|
||||||
- /var/www/app/cache
|
|
||||||
- /var/www/app/lock
|
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres
|
image: postgres
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
/usr/local/bin/gomplate -V -o /var/www/app/config.php -f /etc/templates/config.php.tmpl
|
/usr/local/bin/gomplate -V -o /var/www/app/config.php -f /etc/templates/config.php.tmpl
|
||||||
|
|
||||||
# ensure lock folders exists
|
# ensure lock folders exists
|
||||||
#mkdir -p /var/www/app/cache/images
|
mkdir -p /var/www/app/cache/images
|
||||||
#mkdir -p /var/www/app/cache/upload
|
mkdir -p /var/www/app/cache/upload
|
||||||
#mkdir -p /var/www/app/cache/export
|
mkdir -p /var/www/app/cache/export
|
||||||
|
|
||||||
chown -R nginx:nginx /var/www/app/lock
|
chown -R nginx:nginx /var/www/app/lock
|
||||||
chown -R nginx:nginx /var/www/app/cache
|
chown -R nginx:nginx /var/www/app/cache
|
||||||
|
@ -9,6 +9,7 @@ wget --quiet --tries=1 --spider ${URL}
|
|||||||
CONTENT=$(wget --quiet -O - ${URL})
|
CONTENT=$(wget --quiet -O - ${URL})
|
||||||
case "$CONTENT" in
|
case "$CONTENT" in
|
||||||
*Exception*) exit 1 ;;
|
*Exception*) exit 1 ;;
|
||||||
|
*alert-*alert-*SELF_URL_PATH*) exit 1 ;;
|
||||||
*alert-*SELF_URL_PATH*alert-*) exit 1 ;;
|
*alert-*SELF_URL_PATH*alert-*) exit 1 ;;
|
||||||
*SELF_URL_PATH*alert-*alert-*) exit 1 ;;
|
*SELF_URL_PATH*alert-*alert-*) exit 1 ;;
|
||||||
esac
|
esac
|
||||||
|
Reference in New Issue
Block a user