Closed damntourists closed 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.
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?
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.
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"
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: @.***>
Ok done this, now, follow up, any ideas if there is a quick and easy way to check that the settings have loaded?
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.
Thanks, I honestly didnt even think to do that. All my config is there!
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?