update error_log for nextcloud
This commit is contained in:
@@ -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
|
||||||
22
dockerfiles/services/nextcloud/cli/exec
Executable file
22
dockerfiles/services/nextcloud/cli/exec
Executable 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" $@
|
||||||
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user