Ok, so I've found out that when creating an iptables rule to allow access from source (my docker) 172.17.0.2 to port 3306, access to database is granted.
Now my docker starts, I can type in the login window bu I get:
chrome
Connection to storage server failed.edge:
Connection to IMAP server failed [client ip:61034] PHP Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:141A318A:SSL routines:tls_process_ske_dhe:dh key too small in /var/www/html/program/lib/Roundcube/rcube_imap_generic.php on line 1025, referer:
http://10.0.1.8:8080/?_task=loginerrors: <9dd4c441> IMAP Error: Login failed for user against
imap.server from source.ip. Could not connect to ssl://imap.server:993: Unknown reason in /var/www/html/program/lib/Roundcube/rcube_imap.php on line 200 (POST /?_task=login&_action=login)
[Mon Dec 21 15:38:29.133606 2020] [php7:warn] [pid 50] [client :61034] PHP Warning: stream_socket_client(): Failed to enable crypto in /var/www/html/program/lib/Roundcube/rcube_imap_generic.php on line 1025, referer:
http://10.0.1.8:8080/?_task=login[Mon Dec 21 15:38:29.133878 2020] [php7:warn] [pid 50] [client :61034] PHP Warning: stream_socket_client(): unable to connect to ssl://imap.server:993 (Unknown error) in /var/www/html/program/lib/Roundcube/rcube_imap_generic.php on line 1025, referer:
http://10.0.1.8:8080/?_task=login- - [21/Dec/2020:15:38:29 +0000] "POST /?_task=login HTTP/1.1" 401 2815 "
http://10.0.1.8:8080/?_task=login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
Also, it seems environment variables are that I pass to docker using "-e" run are found in /var/www/htm/config/config.inc.php
if passed via -v "full/path/config/:/var/roundcube/config/" , if i use a terminal inside the docker, the config.inc.php has the defaults value instead of those in my config.inc.php file.
Any ideas, please?