Hi Sean,
I've been using James with docker compose. I use the following yaml to
mount a directory into the James container:
volumes:
- type: bind
source: /home/test/james/james-conf/conf
target: /root/conf
read_only: true
When running without compose, you could probably use:
docker run --rm -v /home/test/james/james-conf/conf:/root/conf ...
or similar, to mount the directory.
(I found that things wouldn't work unless I used a "bind" mount with
compose. YMMV)
I also ran the container without a mounted volume first, and then used
"docker cp ..." to copy the existing configuration files out of the
container into my host directory.
The main idea is:
1. create a directory with all of your configuration files in it.
2. mount that directory as a volume in /root/conf
Hope that makes sense.
Felix
On Wed, 8 Dec 2021 at 11:47, Sean McElroy <[email protected]> wrote:
> Hello,
>
> I am using the Apache James Docker image as described here:
> https://hub.docker.com/r/apache/james
>
> The documentation describes how the /root/conf volume is exposed to ease
> container configuration.
>
> Can some give me an example of this, or describe how to do it?
>
> Thank,
> Sean
> Confidential Communication: The contents of this e-mail including any
> attachment are confidential and intended solely for the person(s) to whom
> they are addressed. Any reader of this email who is not the intended
> recipient is notified that any dissemination, distribution or copying of
> this communication is strictly prohibited. If you have received this e-mail
> in error, please notify the sender immediately and delete all copies from
> your computer system. Subsequent alterations to this email after its
> transmission will be disregarded.
>