jjethwa / rundeck

GNU General Public License v3.0
122 stars 137 forks source link

configure smtp server #83

Open Tony-spearhead opened 7 years ago

Tony-spearhead commented 7 years ago

How do i pass these 2 variables to your docker image? grails.mail.host=mymailserver.com grails.mail.port=25 When I tried to maps these 2 values with the rundeck-config.properties rundeck always ended up in 503 service unavailable.

jjethwa commented 7 years ago

Hi @Tony-spearhead

That should work if you've mounted /etc/rundeck as a volume. Is there anything interesting in the rundeck logs under /var/log/rundeck ?

Tony-spearhead commented 7 years ago

No. I just get a 503 from jetty. I cannot mount /etc/rundeck at all

Tony-spearhead commented 7 years ago

rundeck: image: jordan/rundeck:latest container_name: "rundeck-infra" environment: SERVER_URL: http://myserver:4440 RUNDECK_UID: rundeck RUNDECK_STORAGE_PROVIDER: db RUNDECK_PROJECT_STORAGE_TYPE: db EXTERNAL_SERVER_URL: http://myserver RDECK_JVM_SETTINGS: -Dfile.encoding=UTF-8 volumes:

jjethwa commented 7 years ago

Hi @Tony-spearhead

I don't see /etc/rundeck listed, just /mnt/data/rundeck/etc/realm.properties:/etc/rundeck/realm.properties

Try starting the container with an empty /etc/rundeck volume and it should create the default set of files for you. You should be able to edit the files under the /etc/rundeck volume without issue

Tony-spearhead commented 7 years ago

Hello,

I will try that and keep you updated

Thanks for the help

Tony-spearhead commented 7 years ago

Hi @jjethwa

I did that but the image does not create any files in the mounted etc directory.

Regards

jjethwa commented 7 years ago

Hi @Tony-spearhead

The /etc/rundeck volume needs to be completely empty or else the default configs will not be created. If the directory is empty and the files are not being created, can you check the docker logs to see if there are any complaints about permissions to the volume?

eugeneduvenage commented 6 years ago

I've created a pull request https://github.com/jjethwa/rundeck/pull/86 that allows SMTP settings to be configured via environment variables.

jjethwa commented 6 years ago

Thanks @eugeneduvenage 😄

@Tony-spearhead the changes will be in the latest tag in the next few minutes. Please let us know if it works for you and close the issue if fixed.