yum install docker-io #由于阿里云可能占用完了内网的路由表导致docker启动不了.需要稍微处理下(在下面的配置制定ip段) #/etc/sysconfig/docker other_args=-bip=192.168.100.1/24 #install docker run --name mattermost-dev -d --publish 8065:80 mattermost/platform #start docker start mattermost-dev #stop docker stop mattermost-dev #delete #docker rm -v mattermost-dev #ssh docker exec -ti mattermost-dev /bin/bash #nginx config upstream mattermost_proxy { server 127.0.0.1:8065; } server { listen 80; server_name mattermost.xxx.com; #ssl on; #ssl_certificate /etc/nginx/ssl/server.crt; #ssl_certificate_key /etc/nginx/ssl/commercial.key; #ssl_session_cache shared:SSL:1m; #ssl_session_timeout 5m; #ssl_protocols TLSv1 TLSv1.1 TLSv1.2; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; proxy_pass http://mattermost_proxy; } location /api/v1/websocket { proxy_pass http://mattermost_proxy; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } access_log /data1/logs/web/mattermost.xxx.com.access.log; client_max_body_size 4G; keepalive_timeout 10; }