mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-27 00:10:31 +08:00
Fix (development): Fix self-signed certs verification in docker-compose.yml
This allows `Require verification of SSL certificate` to work as expected.
This commit is contained in:
parent
677e1863e5
commit
25bd3d441e
1 changed files with 29 additions and 3 deletions
|
@ -39,6 +39,8 @@ services:
|
|||
--not-after "2031-01-01T00:00:00+00:00" \
|
||||
--san "example.com" \
|
||||
--san "mail.example.com" \
|
||||
--san "imap.example.com" \
|
||||
--san "smtp.example.com" \
|
||||
--kty RSA --size 2048
|
||||
fi
|
||||
|
||||
|
@ -75,7 +77,18 @@ services:
|
|||
- imap.example.com
|
||||
- smtp.example.com
|
||||
depends_on:
|
||||
- step-ca
|
||||
step-ca:
|
||||
condition: service_completed_successfully
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
command:
|
||||
- -c
|
||||
- |
|
||||
set -eu
|
||||
echo "Trusting demoCA certificate"
|
||||
cp -v /certs/demoCA/cacert.pem /usr/local/share/ca-certificates/cacert.crt # Debian expects certs to end with .crt
|
||||
update-ca-certificates
|
||||
exec supervisord -c /etc/supervisor/supervisord.conf
|
||||
|
||||
# Snappymail: http://localhost:8888
|
||||
# Admin panel: http://localhost:8888/?admin
|
||||
|
@ -87,6 +100,7 @@ services:
|
|||
# environment:
|
||||
# - DEBUG=true
|
||||
volumes:
|
||||
- certs:/certs:ro
|
||||
- ./snappymail:/snappymail/snappymail:ro
|
||||
- ./index.php:/snappymail/index.php:ro
|
||||
- snappymail:/var/lib/snappymail
|
||||
|
@ -95,12 +109,24 @@ services:
|
|||
networks:
|
||||
- default
|
||||
depends_on:
|
||||
- db
|
||||
step-ca:
|
||||
condition: service_completed_successfully
|
||||
db:
|
||||
condition: service_started
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
command:
|
||||
- -c
|
||||
- |
|
||||
set -eu
|
||||
echo "Trusting demoCA certificate"
|
||||
cp -v /certs/demoCA/cacert.pem /usr/local/share/ca-certificates/
|
||||
update-ca-certificates
|
||||
exec /entrypoint.sh
|
||||
|
||||
# MySQL database
|
||||
db:
|
||||
image: mysql:5.7
|
||||
hostname: db
|
||||
restart: always
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=root
|
||||
|
|
Loading…
Reference in a new issue