-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
start with alpine to reduce the image size #11
Comments
@michield , as requested, here is a first version of the phplist alpine based image. I would prefer that we iterate through this issue and converge on something workable for you before submitting a PR. Here is the necessary to build the image itself: To ensure the mail part is working you need to have a mail server available and define the following variables (in docker-compose env file for example): PHPLIST_PHPMAILERHOST=smtp.domain.com
PHPLIST_PHPMAILERPORT=587
PHPLIST_PHPMAILER_SECURE=tls
[email protected]
PHPLIST_PHPMAILER_SMTPPASSWORD=your_mail_at_domain.com_passsword
[email protected]
PHPLIST_BOUNCE_MAILBOX_HOST=imap.domain.com
PHPLIST_BOUNCE_MAILBOX_PORT=993/imap/ssl/novalidate-cert Of course the docker-compose file should contain a MariaDB and Apache/NGINX server. Any comment/suggestion is welcome so that I rework this to make it compatible to your needs. |
Thanks, I've branched to https://github.com/phpList/phplist-docker/tree/from_alpine with your version, so we can work on it from there. Are you familiar with the Github forking and PR processes? That's the easiest way to contribute. |
@michield , Yes I know how to contribute. This is great that you setup a specific branch. |
No, I'd say, fork it, work on it to make it do what you want to achieve and when you're done and think it's worth merging, we can have a look. We may need to work to handle the different environment variables, but that's fairly trivial. Your image is 174MB on my system, and mine is 472MB, so it's a great improvement |
FWIW I am working on running phpList on Alpine in a Docker container for production use behind an nginx reverse proxy. I'm playing around with this at https://github.com/bfranske/phplist-alpine/ but don't know how far I'll get how quickly. |
Be aware that phpList is not so great at "URL detection" when behind proxies. I'm trying to work on this here phpList/phplist3#914 |
See also https://mantis.phplist.org/view.php?id=20318
It would be nice to start from alpine, as that will presumably reduce the overall image size.
The text was updated successfully, but these errors were encountered: