After updating and installing docker, I installed Mattermost software through these lines:
$ docker run --name mattermost-dev -d --publish 8065:80 mattermost/platform
Checking through ssh, the application runs just fine, but I can’t access it through the droplets ip adress.
What am I doing wrong?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The mattermost documentation gives this one-liner which does work properly.
docker run --name mattermost-preview -d --publish 8065:8065 mattermost/mattermost-preview
After running this command a mattermost server is listening on port 8065. Attempting to translate to port 80 on the host however failed and the service was not accessible. Instead to get the preview build up on port 80 I simply installed nginx (either locally or via a second docker container that maps port 80 to port 80 on the host and the following configuration file at /etc/nginx/sites-enabled/default
server {
listen 80 default_server;
listen [::]:80 default_server;
location / {
proxy_pass http://localhost:8065;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
For a production installation of mattermost using docker, the project recommends following these instructions rather than using the one-liner.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.