first commit
This commit is contained in:
1
dockers/roundcube/.env
Symbolic link
1
dockers/roundcube/.env
Symbolic link
@ -0,0 +1 @@
|
||||
../../config/dockers.env
|
50
dockers/roundcube/Readme.txt
Normal file
50
dockers/roundcube/Readme.txt
Normal file
@ -0,0 +1,50 @@
|
||||
dans config.inc.php je rajoute:
|
||||
|
||||
#add by FAB just for testing
|
||||
#pour lire les mails et en envoyer: on désactive la vérification des pairs
|
||||
#est-ce dangereux ? je ne pense car on reste tout est sur la mêmce machine (roundcube/postfix/dovecot)
|
||||
$config['smtp_conn_options'] = array(
|
||||
'ssl' => array(
|
||||
'verify_peer' => false,
|
||||
'verify_peer_name' => false,
|
||||
),
|
||||
);
|
||||
|
||||
$config['imap_conn_options'] = array(
|
||||
'ssl' => array(
|
||||
'verify_peer' => false,
|
||||
'verify_peer_name' => false,
|
||||
),
|
||||
);
|
||||
|
||||
#didier le 2 aout 2021
|
||||
|
||||
docker exec -it roundcubeServ composer.phar require roundcube/carddav --update-no-dev
|
||||
a faire qu' une fois puisque puisque pour ajouter le plugins carddav, la commande ce dessus installe le plugin dans le volume monté dans le docker-compose.yml
|
||||
la commande l' active aussi dans roundcube
|
||||
|
||||
|
||||
TODO:
|
||||
* mettre mariadb à la place de sqllite
|
||||
--> fait
|
||||
* maj du dcker-compose à la sauce KAZ avec docker.env
|
||||
--> fait
|
||||
* redémarrer avec le proxy ngnix
|
||||
--> fait
|
||||
|
||||
QUESTION:
|
||||
********
|
||||
* a quoi sert le fichier Dockerfile avec EXPOSE 9002 ?
|
||||
* pourquoi j'ai du virer le 9902 de proxy_pass http://webmail.__DOMAIN__/;
|
||||
dans le fichier nginx.tmpl.conf alors que le port est indiqué pour le pad:
|
||||
proxy_pass http://pad.__DOMAIN__:9001/;
|
||||
* pourquoi j'ai "compose: up -d roundcube WARNING: Some networks were defined but are not used by any service: mailNet" ?
|
||||
* pourquoi reste t-il des volumes de type 2874d6aa7b462b37783bef5e00628a077602af9678e852ddaf9663041fecbf5e
|
||||
dans /var/lib/docker/volumes ?
|
||||
|
||||
|
||||
Pour virer tous les volumes dangling:
|
||||
# docker volume rm `docker volume ls -q -f dangling=true`
|
||||
|
||||
i# comme nous sommes sur la machine de dev, il faut saisir l' ip du postfixServ en smtp.dev.kaz.bzh en ce moment
|
||||
c' est 172.24.0.2
|
14
dockers/roundcube/config/add-to-config.inc.php
Normal file
14
dockers/roundcube/config/add-to-config.inc.php
Normal file
@ -0,0 +1,14 @@
|
||||
# KAZ custom
|
||||
$config['imap_conn_options'] = array(
|
||||
'ssl' => array(
|
||||
'verify_peer' => false,
|
||||
'verfify_peer_name' => false,
|
||||
),
|
||||
);
|
||||
$config['smtp_conn_options'] = array(
|
||||
'ssl' => array(
|
||||
'verify_peer' => false,
|
||||
'verify_peer_name' => false,
|
||||
),
|
||||
);
|
||||
include 'custom_config.inc.php';
|
4
dockers/roundcube/config/custom_config.inc.php
Normal file
4
dockers/roundcube/config/custom_config.inc.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
$rcmail_config['skin_logo'] = 'skins/elastic/images/kazmel.png';
|
||||
$rcmail_config['support_url'] = 'https://wiki.kaz.bzh/webmail/start';
|
||||
$rcmail_config['product_name'] = 'Le webmail de Kaz';
|
BIN
dockers/roundcube/config/kazmel.png
Normal file
BIN
dockers/roundcube/config/kazmel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.2 KiB |
54
dockers/roundcube/docker-compose.yml
Normal file
54
dockers/roundcube/docker-compose.yml
Normal file
@ -0,0 +1,54 @@
|
||||
version: '3.3'
|
||||
services:
|
||||
|
||||
app:
|
||||
image: roundcube/roundcubemail
|
||||
container_name: ${roundcubeServName}
|
||||
restart: ${restartPolicy}
|
||||
depends_on:
|
||||
- db
|
||||
volumes:
|
||||
- webmailWeb:/var/www/html
|
||||
# ports:
|
||||
# - 8084:80
|
||||
networks:
|
||||
roundcubeNet:
|
||||
postfixNet:
|
||||
external_links:
|
||||
- ${smtpServName}:${smtpHost}
|
||||
environment:
|
||||
- ROUNDCUBEMAIL_DB_HOST=db
|
||||
- ROUNDCUBEMAIL_SKIN=elastic
|
||||
- ROUNDCUBEMAIL_DEFAULT_HOST=ssl://${smtpHost}.${domain}
|
||||
- ROUNDCUBEMAIL_SMTP_SERVER=ssl://${smtpHost}.${domain}
|
||||
- ROUNDCUBEMAIL_DEFAULT_PORT=993
|
||||
- ROUNDCUBEMAIL_SMTP_PORT=465
|
||||
env_file:
|
||||
- ../../secret/env-${roundcubeServName}
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.${roundcubeServName}.rule=Host(`${webmailHost}.${domain}`)"
|
||||
- "traefik.docker.network=roundcubeNet"
|
||||
|
||||
db:
|
||||
image: mariadb:10.5
|
||||
container_name: ${roundcubeDBName}
|
||||
restart: ${restartPolicy}
|
||||
volumes:
|
||||
- webmailDB:/var/lib/mysql
|
||||
env_file:
|
||||
- ../../secret/env-${roundcubeDBName}
|
||||
networks:
|
||||
roundcubeNet:
|
||||
|
||||
volumes:
|
||||
webmailDB:
|
||||
webmailWeb:
|
||||
|
||||
networks:
|
||||
roundcubeNet:
|
||||
external: true
|
||||
name: roundcubeNet
|
||||
postfixNet:
|
||||
external: true
|
||||
name: postfixNet
|
20
dockers/roundcube/first.sh
Executable file
20
dockers/roundcube/first.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
KAZ_ROOT=$(cd $(dirname $0)/../..; pwd)
|
||||
. "${KAZ_ROOT}/bin/.commonFunctions.sh"
|
||||
setKazVars
|
||||
|
||||
cd $(dirname $0)
|
||||
. "${DOCKERS_ENV}"
|
||||
|
||||
WEB_DIR="${DOCK_VOL}/roundcube_webmailWeb/_data"
|
||||
CONF_DIR="${WEB_DIR}/config"
|
||||
IMG_DIR="${WEB_DIR}/skins/elastic/images"
|
||||
|
||||
if ! grep -q "KAZ custom" "${CONF_DIR}/config.inc.php" 2> /dev/null; then
|
||||
printKazMsg "\n *** Premier lancement de roundcube"
|
||||
|
||||
cat "config/add-to-config.inc.php" >> "${CONF_DIR}/config.inc.php"
|
||||
cp "config/custom_config.inc.php" "${CONF_DIR}/"
|
||||
cp "config/kazmel.png" "${IMG_DIR}/"
|
||||
fi
|
Reference in New Issue
Block a user