update error_log for nextcloud

This commit is contained in:
2021-03-07 22:53:42 -05:00
parent 83820b8829
commit f8a059162c
3 changed files with 28 additions and 2 deletions

View File

@@ -4,4 +4,7 @@ FROM nextcloud:${NC_VERSION}-apache
RUN apt-get update && apt-get install -y smbclient && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y smbclient && rm -rf /var/lib/apt/lists/*
RUN echo memory_limit=-1 > /usr/local/etc/php/conf.d/memory-limit.inis # RUN echo memory_limit=-1 > /usr/local/etc/php/conf.d/memory-limit.ini
# /proc/self/fd/2
RUN echo error_log = /proc/self/fd/2 > /usr/local/etc/php/conf.d/error-log.ini

View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -e
export DOCKER_HOST=${DOCKER_HOST:-'dkhost:2376'}
container=$(docker ps -qn1)
while getopts c: name
do
case $name in
c)
container=$OPTARG
;;
*)
;;
esac
done
shift $((OPTIND -1))
echo using container "${container}"
# shellcheck disable=SC2068
docker exec -it -u www-data "$container" $@

View File

@@ -29,7 +29,8 @@ services:
- DBPASS=xh891hx1hc89f239hibndnxc1i - DBPASS=xh891hx1hc89f239hibndnxc1i
- REDISHOST=tasks.services_redis - REDISHOST=tasks.services_redis
- REDISPORT=6379 - REDISPORT=6379
- LOGLEVEL=0 - LOGLEVEL=3
- PHP_MEMORY_LIMIT=-1
healthcheck: healthcheck:
test: ["CMD", "curl", "-If", "http://localhost/status.php"] test: ["CMD", "curl", "-If", "http://localhost/status.php"]