Move all directories per theme
This commit is contained in:
28
webmail/roundcube/Dockerfile
Normal file
28
webmail/roundcube/Dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
FROM php:5-apache
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libfreetype6-dev \
|
||||
libjpeg62-turbo-dev \
|
||||
libmcrypt-dev \
|
||||
libpng12-dev \
|
||||
&& docker-php-ext-install pdo_mysql mcrypt
|
||||
|
||||
ENV ROUNDCUBE_URL https://github.com/roundcube/roundcubemail/releases/download/1.2.3/roundcubemail-1.2.3-complete.tar.gz
|
||||
|
||||
RUN echo date.timezone=UTC > /usr/local/etc/php/conf.d/timezone.ini
|
||||
|
||||
RUN rm -rf /var/www/html/ \
|
||||
&& cd /var/www \
|
||||
&& curl -L -O ${ROUNDCUBE_URL} \
|
||||
&& tar -xf *.tar.gz \
|
||||
&& rm -f *.tar.gz \
|
||||
&& mv roundcubemail-* html \
|
||||
&& cd html \
|
||||
&& rm -rf CHANGELOG INSTALL LICENSE README.md UPGRADING composer.json-dist installer \
|
||||
&& chown -R www-data: logs
|
||||
|
||||
COPY config.inc.php /var/www/html/config/
|
||||
|
||||
COPY start.sh /start.sh
|
||||
|
||||
CMD ["/start.sh"]
|
||||
45
webmail/roundcube/config.inc.php
Normal file
45
webmail/roundcube/config.inc.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
$config = array();
|
||||
|
||||
// Generals
|
||||
$config['db_dsnw'] = 'sqlite:////data/roundcube.db';
|
||||
$config['des_key'] = getenv('SECRET_KEY');
|
||||
$config['identities_level'] = 3;
|
||||
$config['reply_all_mode'] = 1;
|
||||
|
||||
// List of active plugins (in plugins/ directory)
|
||||
$config['plugins'] = array(
|
||||
'archive',
|
||||
'zipdownload',
|
||||
'markasjunk',
|
||||
'managesieve'
|
||||
);
|
||||
|
||||
// Mail servers
|
||||
$config['default_host'] = 'front';
|
||||
$config['default_port'] = 10143;
|
||||
$config['smtp_server'] = 'front';
|
||||
$config['smtp_port'] = 10025;
|
||||
$config['smtp_user'] = '%u';
|
||||
$config['smtp_pass'] = '%p';
|
||||
|
||||
// Sieve script management
|
||||
$config['managesieve_host'] = 'imap';
|
||||
$config['managesieve_usetls'] = true;
|
||||
|
||||
// We access the IMAP and SMTP servers locally with internal names, SSL
|
||||
// will obviously fail but this sounds better than allowing insecure login
|
||||
// from the outter world
|
||||
$ssl_no_check = array(
|
||||
'ssl' => array(
|
||||
'verify_peer' => false,
|
||||
'verify_peer_name' => false,
|
||||
),
|
||||
);
|
||||
$config['imap_conn_options'] = $ssl_no_check;
|
||||
$config['smtp_conn_options'] = $ssl_no_check;
|
||||
$config['managesieve_conn_options'] = $ssl_no_check;
|
||||
|
||||
// skin name: folder from skins/
|
||||
$config['skin'] = 'larry';
|
||||
7
webmail/roundcube/start.sh
Executable file
7
webmail/roundcube/start.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Fix some permissions
|
||||
chown -R www-data:www-data /data
|
||||
|
||||
# Run apache
|
||||
exec apache2-foreground
|
||||
Reference in New Issue
Block a user