Skip to content
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

Stacking multiple services in one container is an anti-Docker pattern #22

Closed
szepeviktor opened this issue May 28, 2021 · 3 comments
Closed

Comments

@szepeviktor
Copy link
Contributor

Docker suggests you to run 1 service per container.

- SSL termination - web server - PHP-FPM
\ SMTP server

If you want to run a monolith why not do it in an operating system and keep it as clean as a container?

@szepeviktor
Copy link
Contributor Author

szepeviktor commented May 28, 2021

I suspect msmtp-mta is in the container to support mail(); in poorly written applications...

@jaydrogers
Copy link
Member

This is related to #15.

I see where Docker is coming from on this, but unfortunately for simple apps, php-fpm + nginx is required. And the only way to get this to work was to use supervisor (at the time).

Hoping S6 will make this less crappy 😁

S6 even talks about this: https://github.com/just-containers/s6-overlay#the-docker-way

I suspect msmtp-mta is in the container to support mail(); in poorly written applications...

Yup, poor applications like WordPress 🙃 Also MSMTP allows the ability for:

  • DKIM signing
  • Easy routing between "production email" or trapping everything in Mailhog

@szepeviktor
Copy link
Contributor Author

szepeviktor commented May 28, 2021

Web applications is production should use a transactional email service provider.
At least in viktor-world they do.
See number 6! https://github.com/szepeviktor/debian-server-tools/blob/master/Onboarding.md#specialized-infrastructure-providers

WordPress likes to have https://wordpress.org/plugins/smtp-uri/ installed where you can configure it with a single string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants