I have a docker compose file and within this file I have a container. Although one issue I’m stuck with is that the container has an [OPTION] along with the flag, but where do I place this flag ?
Please help us to understand the exact context you are referring to.
If it’s a command, please share the whole command. If it’s the compose file, please share the content of the compose file.
OPTIONS/log
--nolog : Turn off logging on file
--logfile str : Change the default log filename (can be dirname/filename).
--logdir str : Change the default log directory. Default is LOG_imapsync/
I want to use logdir
but where must this be placed ?
I am afraid this is still not the right context information. None of those are docker container configurations.
They must be specific to the image you try to use.
I understand, although how do I use with a container ?
What do you call and how do you setup options for the imapsync container. That is what I want to know, there are plenty of options but how do I add them ?
The information you shared so far isn’t enough to help you.
If you are looking for a helpful answer, you will need to share way more information!
As @meyay says, some more information is needed to correctly answer your question. Specifically, what is the name of the image, or the value of the image:
property in the docker compose file that you already have.
Looking at imapsync documentation, --logdir
is an option of the imapsync
command line. Such flags are normally placed in the command:
property, something like this:
command: ["imapsync", "--host1","somehost.somedomain.local", "--logdir", "/var/logs"]
This is a not an actual command, but a guess based on imapsync documentation. Please let us know the name of the image, or paste your existing compose file here, to get an accurate answer.