re-add memcache to make container more universal
This commit is contained in:
@@ -67,6 +67,7 @@ RUN --mount=type=bind,from=builder,source=/buildtmp/vendor/output,target=/build
|
|||||||
patch \
|
patch \
|
||||||
apache2 \
|
apache2 \
|
||||||
gnupg2 \
|
gnupg2 \
|
||||||
|
memcached \
|
||||||
&& \
|
&& \
|
||||||
case "${TARGETPLATFORM}" in \
|
case "${TARGETPLATFORM}" in \
|
||||||
'linux/amd64') export ARCH='linux-x64' ;; \
|
'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/ && \
|
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 && \
|
sed -i -e 's/#RedirectMatch \^\/\$ https:\/\/mail.yourdomain.com\/SOGo/RedirectMatch \^\/\$ \/SOGo/' /etc/apache2/conf-available/SOGo.conf && \
|
||||||
a2enconf SOGo && \
|
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
|
EXPOSE 80 443
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,18 @@ stderr_logfile_maxbytes=0
|
|||||||
environment=APACHE_ARGUMENTS="-DNO_DETACH"
|
environment=APACHE_ARGUMENTS="-DNO_DETACH"
|
||||||
command=/usr/sbin/apache2ctl start
|
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]
|
[program:sogo]
|
||||||
startsecs=0
|
startsecs=0
|
||||||
autostart=true
|
autostart=true
|
||||||
|
|||||||
Reference in New Issue
Block a user