From 4e20d894a4f441136fd1030b9c98131e26f391c6 Mon Sep 17 00:00:00 2001 From: ycharbi Date: Tue, 3 Sep 2019 17:20:11 +0200 Subject: [PATCH] Ajout du conteneur baikal. --- baikal/Dockerfile | 14 ++++++++++++++ baikal/baikal.conf | 20 ++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 baikal/Dockerfile create mode 100644 baikal/baikal.conf diff --git a/baikal/Dockerfile b/baikal/Dockerfile new file mode 100644 index 0000000..3702fd4 --- /dev/null +++ b/baikal/Dockerfile @@ -0,0 +1,14 @@ +FROM debian:buster-slim +ENV VERSION 0.6.0 +RUN echo "baikal.ycharbi.fr" > /etc/hostname +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends wget ca-certificates apache2 php php-sqlite3 zip php-xml php-mbstring unzip +RUN wget -q https://github.com/fruux/Baikal/releases/download/$VERSION/baikal-$VERSION.zip -P /tmp/ +RUN unzip /tmp/baikal-$VERSION.zip -d /var/www/ && chown -R www-data:www-data /var/www/baikal +COPY baikal.conf /etc/apache2/sites-available/ +RUN a2dissite 000-default.conf +RUN a2ensite baikal.conf +RUN a2enmod rewrite +RUN echo "ServerName baikal.ycharbi.fr\nServerSignature Off\nServerTokens Prod" >> /etc/apache2/apache2.conf +RUN apt-get clean && rm -rf /tmp/* +EXPOSE 80 +CMD /usr/sbin/apache2ctl -D FOREGROUND diff --git a/baikal/baikal.conf b/baikal/baikal.conf new file mode 100644 index 0000000..a7b1df4 --- /dev/null +++ b/baikal/baikal.conf @@ -0,0 +1,20 @@ + + ServerAdmin webmaster@localhost + DocumentRoot /var/www/baikal/html + + RewriteEngine On + RewriteRule /.well-known/carddav /dav.php [R,L] + RewriteRule /.well-known/caldav /dav.php [R,L] + + + Options None + Options +FollowSymlinks + AllowOverride All + + Require all granted + + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + +