better config
This commit is contained in:
parent
21a71eeeff
commit
27e0ee8389
@ -1,7 +1,8 @@
|
||||
FROM roundcube/roundcubemail:latest-apache
|
||||
|
||||
COPY docker-override.inc.php /var/www/html/config/docker-override.inc.php
|
||||
COPY managesieve.config.inc.php /managesieve.config.inc.php
|
||||
COPY entrypoint.sh /entrypoint-custom.sh
|
||||
COPY docker-override.inc.php /docker-override.inc.php
|
||||
|
||||
RUN chmod +x /entrypoint-custom.sh
|
||||
|
||||
|
||||
@ -14,4 +14,14 @@ done
|
||||
grep -q "docker-override" /var/www/html/config/config.inc.php || \
|
||||
echo "require_once '/var/www/html/config/docker-override.inc.php';" >> /var/www/html/config/config.inc.php
|
||||
|
||||
# Настройка managesieve
|
||||
cat > /var/www/html/plugins/managesieve/config.inc.php << 'PHPEOF'
|
||||
<?php
|
||||
$config['managesieve_host'] = 'stalwart';
|
||||
$config['managesieve_port'] = 4190;
|
||||
$config['managesieve_usetls'] = false;
|
||||
PHPEOF
|
||||
|
||||
cp /managesieve.config.inc.php /var/www/html/plugins/managesieve/config.inc.php
|
||||
|
||||
wait $PID
|
||||
|
||||
11
config/roundcube/managesieve.config.inc.php
Normal file
11
config/roundcube/managesieve.config.inc.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
$config['managesieve_host'] = 'tls://stalwart';
|
||||
$config['managesieve_port'] = 4190;
|
||||
$config['managesieve_usetls'] = false;
|
||||
$config['managesieve_auth_type'] = 'PLAIN';
|
||||
$config['managesieve_conn_options'] = [
|
||||
'ssl' => [
|
||||
'verify_peer' => false,
|
||||
'verify_peer_name' => false,
|
||||
],
|
||||
];
|
||||
4
config/stalwart/config.json
Normal file
4
config/stalwart/config.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"@type": "RocksDb",
|
||||
"path": "/opt/stalwart"
|
||||
}
|
||||
@ -16,6 +16,9 @@ services:
|
||||
- "443:443" # HTTPS (если не используется внешний reverse proxy)
|
||||
volumes:
|
||||
- ./data/stalwart:/opt/stalwart
|
||||
- ./config/stalwart:/etc/stalwart
|
||||
#- STALWART_RECOVERY_ADMIN=admin:MyStrongPassword123
|
||||
#- STALWART_RECOVERY_MODE=1
|
||||
environment:
|
||||
- TZ=${TZ:-UTC}
|
||||
depends_on:
|
||||
@ -88,6 +91,31 @@ services:
|
||||
networks:
|
||||
- mail
|
||||
|
||||
autoheal:
|
||||
image: willfarrell/autoheal:latest
|
||||
container_name: autoheal
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- AUTOHEAL_CONTAINER_LABEL=all
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
cadvisor:
|
||||
image: gcr.io/cadvisor/cadvisor:latest
|
||||
container_name: cadvisor
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8091:8080"
|
||||
volumes:
|
||||
- /:/rootfs:ro
|
||||
- /var/run:/var/run:ro
|
||||
- /sys:/sys:ro
|
||||
- /var/lib/docker/:/var/lib/docker:ro
|
||||
- /dev/disk/:/dev/disk:ro
|
||||
privileged: true
|
||||
networks:
|
||||
- mail
|
||||
|
||||
networks:
|
||||
mail:
|
||||
name: mail
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user