roundcubemail-docker/examples/docker-compose-mysql.yaml
Pablo Zmdl 18a941c85e Use :latest mysql images
Apparently there were problems with running new versions some time ago,
but I couldn't reproduce them, so here we go.
2024-12-17 14:47:00 +01:00

39 lines
1.1 KiB
YAML

version: '2'
services:
roundcubedb:
image: mysql:latest
container_name: roundcubedb
# restart: unless-stopped
volumes:
- ./db/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=roundcube-mysql-pw
- MYSQL_DATABASE=roundcubemail
roundcubemail:
image: roundcube/roundcubemail:latest
container_name: roundcubemail
# restart: unless-stopped
depends_on:
- roundcubedb
links:
- roundcubedb
volumes:
- ./www:/var/www/html
ports:
- 9001:80
environment:
- ROUNDCUBEMAIL_DB_TYPE=mysql
- ROUNDCUBEMAIL_DB_HOST=roundcubedb
- ROUNDCUBEMAIL_DB_PASSWORD=roundcube-mysql-pw
- ROUNDCUBEMAIL_SKIN=elastic
- ROUNDCUBEMAIL_DEFAULT_HOST=tls://mail.example.org
- ROUNDCUBEMAIL_SMTP_SERVER=tls://mail.example.org
### Optional: add a full mail server stack to use with Roundcube like https://github.com/docker-mailserver/docker-mailserver
# mailserver:
# image: mailserver/docker-mailserver:latest
# hostname: mail.example.org
# ... # for more options see https://github.com/docker-mailserver/docker-mailserver#examples