tomsquest / docker-radicale

Docker image for Radicale calendar and contact server :calendar: + security :closed_lock_with_key: + addons :rocket:
GNU General Public License v3.0
591 stars 82 forks source link

unable to change path of config file #85

Closed eliaharm closed 3 years ago

eliaharm commented 3 years ago

Hello,

I am using nomad to run the container and storing the config file in "/local/config" as it is being generated from a consul template.

however I am unable to change the location of the config file using the environment variable as I think it is being overwritten with line 56 of the docker file

CMD ["radicale", "--config", "/config/config"]

is it possible to remove the --config parameter and leave it as an environment variable?

Thanks,

tomsquest commented 3 years ago

Hi @eliaharm ,

Two things:

See docker-compose reference

eliaharm commented 3 years ago

Hello @tomsquest

Thank you, yes I have figured out how to override CMD. that was the first time I had to do that.

Actually it is not on the host, I think some sort of chroot tha Hashicorp Nomad uses as I didn't want to create a volume for a single file and also to keep the configuration parameters in consul (12 factor app config guidelines...)

Best, Elia