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
Swarm Mode #487
Comments
Hi @AndrewMoneronGenex, you're the first asking for Swarm information 😄 The best thing to do is to try it out. |
@AndrewMoneronGenex Have a look @ #509 |
EDIT: Oh, i do not follow the link above :) :) It does work in swarm, however its not possible to scale the container.. :(
|
@Berndinox Why it fails to scale? @AndrewMoneronGenex is the hostname still an issue? |
Have not looked too deep into it, i'll check it the next days.
|
It preserves the state on restart documentation. It will run with |
Has anyone tried this? There's a problem with SPF validation where you need to run docker in host mode to get correct IPs. I need to be able to run in global mode on the swarm to make sure that I have failover. |
With regards to scaling. The biggest issue is always managing state. Because we have the user details and mailboxes in there I would treat this pretty much the same way as I would treat scaling up a database. Unless it uses extremely well tested industry-standard sharding, replication, leader-election, discovery, self-healing, consistency semaphores and so on... I wouldn't touch the scaling options with a 10ft pole. Part of the reason why piecing all the different components together is such a pain, is because people with scaling needs are going to have to pick them apart and build performant pipelines out of this, rather than bundling it up in a single easy container. I'd have a long think about why you need to scale your service. If it's for uptime you may want to look at the docker healthcheck features instead to detect issues sooner and have it restart. If it's for throughput maybe you want to look at the specific bottleneck you're having. |
@Berndinox how did you configure DNS to make this work? |
fail2ban doesn't work with swarm mode. |
as a matter of fact "hostname" parameter and .env config do not work with a docker-compose.yml in swarm mode, because .env file are not supported and the method suggested by Berndinox is a workaround using domain overriding |
I'm not sure about scaling as I deployed to only one node in my swarm... Regarding the mailserver:
env_file: .env @tomav |
So how does one use the |
I guess the The huge issue with this is still moby/moby#25526, as that means that connections are wrongly marked spam/non-spam, even just by postscreen. In my case this includes the Swarm's proxy IP to be marked as spam, meaning that not a single email can be delivered to the server. In an approach to quickly fix it I even accidentally made my server an open relay. Together with the SPF validation issue, this means that with Docker Swarm, currently no secure and working mailserver can be deployed at all. |
Hi
Is this container able to work in swarm mode, since the --hostname param in not supported by docker service create?
The text was updated successfully, but these errors were encountered: