Fix for letsencrypt, where to run on 443 you need to setcap cap_net_bind_service=+ep ./bin/mattermost. Note, this is needed internally from the container even if you set the correct CAP_NET_BIND_SERVICE in the docker compose env (#425)
This commit is contained in:
parent
3bc888ac7d
commit
4f4302fe1b
@ -18,6 +18,7 @@ RUN apk add --no-cache \
|
|||||||
jq \
|
jq \
|
||||||
libc6-compat \
|
libc6-compat \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
|
libcap \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
mailcap \
|
mailcap \
|
||||||
netcat-openbsd \
|
netcat-openbsd \
|
||||||
@ -34,7 +35,8 @@ RUN mkdir -p /mattermost/data /mattermost/plugins /mattermost/client/plugins \
|
|||||||
&& rm -rf /mattermost/config/config.json \
|
&& rm -rf /mattermost/config/config.json \
|
||||||
&& addgroup -g ${PGID} mattermost \
|
&& addgroup -g ${PGID} mattermost \
|
||||||
&& adduser -D -u ${PUID} -G mattermost -h /mattermost -D mattermost \
|
&& adduser -D -u ${PUID} -G mattermost -h /mattermost -D mattermost \
|
||||||
&& chown -R mattermost:mattermost /mattermost /config.json.save /mattermost/plugins /mattermost/client/plugins
|
&& chown -R mattermost:mattermost /mattermost /config.json.save /mattermost/plugins /mattermost/client/plugins \
|
||||||
|
&& setcap cap_net_bind_service=+ep /mattermost/bin/mattermost
|
||||||
|
|
||||||
USER mattermost
|
USER mattermost
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user