Move all directories per theme
This commit is contained in:
27
webmail/rainloop/Dockerfile
Normal file
27
webmail/rainloop/Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM php:5-apache
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
unzip
|
||||
|
||||
ENV RAINLOOP_URL https://github.com/RainLoop/rainloop-webmail/releases/download/v1.11.1/rainloop-community-1.11.1.zip
|
||||
|
||||
RUN rm -rf /var/www/html/ \
|
||||
&& mkdir /var/www/html \
|
||||
&& cd /var/www/html \
|
||||
&& curl -L -O ${RAINLOOP_URL} \
|
||||
&& unzip *.zip \
|
||||
&& rm -f *.zip \
|
||||
&& rm -rf data/ \
|
||||
&& find . -type d -exec chmod 755 {} \; \
|
||||
&& find . -type f -exec chmod 644 {} \; \
|
||||
&& chown -R www-data: *
|
||||
|
||||
COPY include.php /var/www/html/include.php
|
||||
COPY php.ini /usr/local/etc/php/conf.d/rainloop.ini
|
||||
|
||||
COPY config.ini /config.ini
|
||||
COPY default.ini /default.ini
|
||||
|
||||
COPY start.sh /start.sh
|
||||
|
||||
CMD ["/start.sh"]
|
||||
10
webmail/rainloop/config.ini
Normal file
10
webmail/rainloop/config.ini
Normal file
@@ -0,0 +1,10 @@
|
||||
; RainLoop Webmail configuration file
|
||||
|
||||
[webmail]
|
||||
attachment_size_limit = 25
|
||||
|
||||
[security]
|
||||
allow_admin_panel = Off
|
||||
|
||||
[labs]
|
||||
allow_gravatar = Off
|
||||
15
webmail/rainloop/default.ini
Normal file
15
webmail/rainloop/default.ini
Normal file
@@ -0,0 +1,15 @@
|
||||
imap_host = "front"
|
||||
imap_port = 10143
|
||||
imap_secure = "None"
|
||||
imap_short_login = Off
|
||||
sieve_use = On
|
||||
sieve_allow_raw = Off
|
||||
sieve_host = "imap"
|
||||
sieve_port = 4190
|
||||
sieve_secure = "TLS"
|
||||
smtp_host = "front"
|
||||
smtp_port = 10025
|
||||
smtp_secure = "None"
|
||||
smtp_short_login = Off
|
||||
smtp_auth = On
|
||||
smtp_php_mail = Off
|
||||
19
webmail/rainloop/include.php
Normal file
19
webmail/rainloop/include.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
// Rename this file to "include.php" to enable it.
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
function __get_custom_data_full_path()
|
||||
{
|
||||
return '/data/'; // custom data folder path
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
function __get_additional_configuration_name()
|
||||
{
|
||||
return 'config.ini';
|
||||
}
|
||||
3
webmail/rainloop/php.ini
Normal file
3
webmail/rainloop/php.ini
Normal file
@@ -0,0 +1,3 @@
|
||||
date.timezone=UTC
|
||||
upload_max_filesize = 25M
|
||||
post_max_size = 25M
|
||||
14
webmail/rainloop/start.sh
Executable file
14
webmail/rainloop/start.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
# There is no cleaner way to setup the default SMTP/IMAP server or to
|
||||
# override the configuration
|
||||
rm -f /data/_data_/_default_/domains/*
|
||||
mkdir -p /data/_data_/_default_/domains/ /data/_data_/_default_/configs/
|
||||
cp /default.ini /data/_data_/_default_/domains/
|
||||
cp /config.ini /data/_data_/_default_/configs/
|
||||
|
||||
# Fix some permissions
|
||||
chown -R www-data:www-data /data
|
||||
|
||||
# Run apache
|
||||
exec apache2-foreground
|
||||
Reference in New Issue
Block a user