A simple docker compose definition for a roundcube mail server.
Remember to add definitions for your HTTPS reverse proxy to secure the browser connections.
| version: "2" | |
| services: | |
| webmail: | |
| image: roundcube/roundcubemail | |
| environment: | |
| - ROUNDCUBEMAIL_DEFAULT_HOST=imap.exmaple.com | |
| - ROUNDCUBEMAIL_DEFAULT_PORT=143 | |
| - ROUNDCUBEMAIL_SMTP_SERVER=smtp.example.com | |
| - ROUNDCUBEMAIL_SMTP_PORT=25 | |
| - ROUNDCUBEMAIL_DB_TYPE=mysql | |
| - ROUNDCUBEMAIL_DB_HOST=database | |
| - ROUNDCUBEMAIL_DB_USER=roundcube | |
| - ROUNDCUBEMAIL_DB_PASSWORD=passround | |
| - ROUNDCUBEMAIL_DB_NAME=roundcube | |
| depends_on: | |
| - database | |
| # ports: | |
| # - 8025:80/tcp | |
| database: | |
| image: mariadb:10.4.2 | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=rootpassaround | |
| - MYSQL_USER=roundcube | |
| - MYSQL_PASSWORD=passround | |
| - MYSQL_DATABASE=roundcube |