Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalguru committed Sep 30, 2024
2 parents 10a8aa5 + b081ea9 commit 4f55b6a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -
#ADD etc/sites/ /etc/apache2/sites-enabled/
#ADD src/ /var/www/html/
RUN chown -R www-data:www-data /var/www/html
ENV ROUNDCUBE_VERSION="1.6.6"
ENV ROUNDCUBE_VERSION="1.6.9"
ENV ROUNDCUBE_REVISION="0"

RUN cd /var/www/html \
Expand Down
39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Related images:
# Tags
The following versions are available from DockerHub. The image tag matches the Roundcube version.

* [1.6.6.0, 1.6.6, 1.6, 1, latest](https://hub.docker.com/repository/docker/technicalguru/mailserver-roundcube) - [Dockerfile](https://github.com/technicalguru/docker-mailserver-roundcube/blob/1.6.6.0/Dockerfile)
* [1.6.9.0, 1.6.9, 1.6, 1, latest](https://hub.docker.com/repository/docker/technicalguru/mailserver-roundcube) - [Dockerfile](https://github.com/technicalguru/docker-mailserver-roundcube/blob/1.6.9.0/Dockerfile)
* [1.5.2.0, 1.5.2, 1.5](https://hub.docker.com/repository/docker/technicalguru/mailserver-roundcube) - [Dockerfile](https://github.com/technicalguru/docker-mailserver-roundcube/blob/1.5.2.0/Dockerfile)
* [1.4.11.0, 1.4.11, 1.4](https://hub.docker.com/repository/docker/technicalguru/mailserver-roundcube) - [Dockerfile](https://github.com/technicalguru/docker-mailserver-roundcube/blob/1.4.11.0/Dockerfile)

Expand Down Expand Up @@ -75,6 +75,43 @@ You can further customize `config.inc.php`. Please follow these instructions:
1. Customize your configuration file.
1. Provide your customized file back into the `/var/www/html` by using a volume mapping.

# Increase Upload size for attachments
The attachment size is controlled by the PHP configuration. The file must be placed in `/usr/local/etc/php/conf.d/`:

```
upload_max_filesize = 20M
post_max_size = 20M
```

For Kubernetes using the HELM chart, create the following ConfigMap:

```
apiVersion: v1
kind: ConfigMap
metadata:
name: mailserver-roundcube-upload
data:
upload.ini: |-
upload_max_filesize = 10M
post_max_size = 10M
```

Add the following lines to your HELM values.yaml file:

```
additionalContainerSpec:
volumeMounts:
- mountPath: /usr/local/etc/php/conf.d/upload.ini
name: roundcube-upload-config
subPath: upload.ini
additionalPodSpec:
volumes:
- name: roundcube-upload-config
configMap:
name: mailserver-roundcube-upload
```


# Issues
This Docker image is mature and supports my own mailserver in production. There are no known issues at the moment.

Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
docker build --progress=plain -t technicalguru/mailserver-roundcube:latest .
docker build -t technicalguru/mailserver-roundcube:latest .

0 comments on commit 4f55b6a

Please sign in to comment.