This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push: new 7166218 Allow for mapping MAIL_DATA 7166218 is described below commit 7166218e94ee70c4a548f4c1c8b8f11b80655e61 Author: Sebb <s...@apache.org> AuthorDate: Tue Jul 2 23:22:40 2024 +0100 Allow for mapping MAIL_DATA --- DOCKER.md | 4 ++-- compose.yaml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DOCKER.md b/DOCKER.md index 7ad6a0b..55f3304 100644 --- a/DOCKER.md +++ b/DOCKER.md @@ -15,7 +15,7 @@ $ cd ponymail-foal start Docker (e.g. open ~/Applications/Docker.app) Build the image: -```$ docker compose build pmfoal``` +```$ docker compose build``` Resolve any issues (e.g. ensure Docker has access to the required directories), and rebuild @@ -26,7 +26,7 @@ Open a new terminal session ``` $ cd ponymail-foal -$ docker compose up +$ [MAIL_DATA=/path/to/mailboxes] docker compose up ``` To stop the server, either use ^C, or issue the following in another terminal session: diff --git a/compose.yaml b/compose.yaml index c1c3119..ccd8886 100644 --- a/compose.yaml +++ b/compose.yaml @@ -7,7 +7,9 @@ services: ports: - "1080:80" - "9200:9200" +# MAIL_DATA can be used to map external mailboxes into the container volumes: - .:/var/www/ponymail - ./elastic/lib:/var/lib/elasticsearch - ./elastic/log:/var/log/elasticsearch + - ${MAIL_DATA:-.}:/var/maildata