docs(): update readme

This commit is contained in:
Hardware 2018-06-22 09:13:40 +02:00
parent 7f397ef46f
commit fc8124dc77
No known key found for this signature in database
GPG Key ID: EC6DF6F90263EDEA
3 changed files with 5 additions and 4 deletions

View File

@ -5,7 +5,7 @@ LABEL description "Rainloop is a simple, modern & fast web-based client" \
ARG GPG_FINGERPRINT="3B79 7ECE 694F 3B7B 70F3 11A4 ED7C 49D9 87DA 4591"
ENV UID=991 GID=991 UPLOAD_MAX_SIZE=25M
ENV UID=991 GID=991 UPLOAD_MAX_SIZE=25M LOG_TO_STDOUT=false
RUN echo "@community https://nl.alpinelinux.org/alpine/v3.7/community" >> /etc/apk/repositories \
&& apk -U upgrade \

View File

@ -30,7 +30,7 @@ Rainloop is a simple, modern & fast web-based client. More details on the [offic
| **UID** | rainloop user id | *optional* | 991
| **GID** | rainloop group id | *optional* | 991
| **UPLOAD_MAX_SIZE** | Attachment size limit | *optional* | 25M
| **LOG_TO_STDOUT** | set to "true" | *optional* | undef
| **LOG_TO_STDOUT** | Enable nginx and php error logs to stdout | *optional* | false
### Docker-compose.yml

View File

@ -9,10 +9,11 @@ if [ -d "/rainloop/data/_data_/_default_/plugins/postfixadmin-change-password" ]
fi
# Set log output to STDOUT if wanted (LOG_TO_STDOUT=true)
if [ "$LOG_TO_STDOUT" == "true" ]; then
if [ "$LOG_TO_STDOUT" = true ]; then
echo "[INFO] Logging to stdout activated"
chmod o+w /dev/stdout
sed -i "s/.*error_log.*$/error_log \/dev\/stdout warn;/" /etc/nginx/nginx.conf
echo "Logging to STDOUT activated" > /dev/stdout
sed -i "s/.*error_log.*$/error_log = \/dev\/stdout/" /etc/php7/php-fpm.conf
fi
# Add postfixadmin-change-password plugin