re-add memcache to make container more universal

This commit is contained in:
kjeld Schouten-Lebbing
2021-09-05 23:31:23 +02:00
parent 109d186b34
commit daef9c8f38
2 changed files with 16 additions and 1 deletions
+4 -1
View File
@@ -67,6 +67,7 @@ RUN --mount=type=bind,from=builder,source=/buildtmp/vendor/output,target=/build
patch \
apache2 \
gnupg2 \
memcached \
&& \
case "${TARGETPLATFORM}" in \
'linux/amd64') export ARCH='linux-x64' ;; \
@@ -86,7 +87,9 @@ RUN --mount=type=bind,from=builder,source=/buildtmp/vendor/output,target=/build
cp /etc/apache2/conf.d/SOGo.conf /etc/apache2/conf-available/ && \
sed -i -e 's/#RedirectMatch \^\/\$ https:\/\/mail.yourdomain.com\/SOGo/RedirectMatch \^\/\$ \/SOGo/' /etc/apache2/conf-available/SOGo.conf && \
a2enconf SOGo && \
usermod --home /srv/lib/sogo sogo
usermod --home /srv/lib/sogo sogo && \
mkdir -p /var/run/memcached/ && \
chown memcache:memcache /var/run/memcached
EXPOSE 80 443
@@ -18,6 +18,18 @@ stderr_logfile_maxbytes=0
environment=APACHE_ARGUMENTS="-DNO_DETACH"
command=/usr/sbin/apache2ctl start
[program:memcached]
startsecs=0
autostart=true
autorestart=true
user=memcache
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
command=/usr/bin/memcached -m 128 -a 0666 -s /var/run/memcached/memcached.sock
[program:sogo]
startsecs=0
autostart=true