Can’t get Mattermost to start in Docker Swarm.
Steps to reproduce
I’m trying to test this on a mac. I followed the Official Guide and I can get the Docker Compose file to work, I can access the mattermost and configure everything, but we want to deploy this with docker swarm, but when I try to run the
contrib/swarm/docker-stack.yml it fails.
The mm_app and mm_db both are starting and running correctly from all I can see, the one that isn’t running when I run
docker stack ps mm
[emerg] 9#9: host not found in upstream "mm_app" in /etc/nginx/conf.d/mattermost.conf:21 nginx: [emerg] host not found in upstream "mm_app" in /etc/nginx/conf.d/mattermost.conf:21 [error] 10#10: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "http://10.0.1.3:80/", host: "localhost" 127.0.0.1 - - [29/Jul/2018:18:43:59 +0000] "GET / HTTP/1.1" 502 166 "-" "curl/7.61.0" "-"
I understand this is a problem in the nginx conf file, but I don’t understand how to fix this, since line 21 is
which I believe is the one in the that is written in
docker-stack.yml that is mm_app.
I never used docker swarm before so sorry if this is a stupid mistake.