Leantime / docker-leantime

Official Docker Image for Leantime https://leantime.io
GNU Affero General Public License v3.0
190 stars 86 forks source link

Configurable SMTP settings? #28

Closed damntourists closed 3 years ago

damntourists commented 3 years ago

This isn't really an issue, more a question since I'm having trouble finding anything regarding email configuration. I'm curious if there's any way to configure email settings so I can ensure notifications are sent?

damntourists commented 3 years ago

I see now that I'm able to mount a path to /var/www/html/config/configuration.php with a custom config. Seems that this one https://github.com/Leantime/leantime/blob/master/config/configuration.sample.php is copied to that location automatically when the docker container starts up if not present which has SMTP settings.

cstrat commented 2 years ago

Is there a way to set this configuration in the docker-compose file? Sounds like we would lose this configuration with each update if we need to manually set it?

agent-squirrel commented 2 years ago

Is there a way to set this configuration in the docker-compose file? Sounds like we would lose this configuration with each update if we need to manually set it?

That config lives outside the container and you use Docker mounts to mount it to that location.

cstrat commented 2 years ago

Thanks @agent-squirrel - so you're saying you just create the file somewhere locally and mount that individual file from the container to point to the one outside of docker?

like so:

volumes:
      - "/home/server/configuration.php/:/var/www/html/config/configuration.php"
agent-squirrel commented 2 years ago

Yup that's it exactly.

Adam Heathcote - @.*** - 0416363934

Join the Linux Foundation https://www.linuxfoundation.org/ and support Open Source software development https://www.linuxfoundation.org/

On Tue, Apr 19, 2022 at 1:14 PM Chris Stratford @.***> wrote:

Thanks @agent-squirrel https://github.com/agent-squirrel - so you're saying you just create the file somewhere locally and mount that individual file from the container to point to the one outside of docker?

like so:

volumes:

  • "/home/server/configuration.php/:/var/www/html/config/configuration.php"

— Reply to this email directly, view it on GitHub https://github.com/Leantime/docker-leantime/issues/28#issuecomment-1101950260, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACRPIX6HN4YVXHHFPSPRP4LVFYQJLANCNFSM4WOCGBMA . You are receiving this because you were mentioned.Message ID: @.***>

cstrat commented 2 years ago

Ok done this, now, follow up, any ideas if there is a quick and easy way to check that the settings have loaded?

agent-squirrel commented 2 years ago

I usually just jump into the container and check the config inside. docker exec -it {container_name} /bin/bash To get inside the container then just cat the file out.

cstrat commented 2 years ago

Thanks, I honestly didnt even think to do that. All my config is there!