Archived
Docker for mattermost in production
1. Put cert.pem into web/cert and key-no-password.pem into web/cert/private. 2. docker-compose up -d The settings of the servers are based on https://github.com/mattermost/platform/blob/master/doc/install/Production-Ubuntu.md. app/config_docker.json is based on https://raw.githubusercontent.com/mattermost/platform/master/config/config.json.
This commit is contained in:
1 parent
8bab0a6d03
commit
4cf5bdc8c8
9 files changed
+215
No files matched your search
@@ -0,0 +1,23 @@
|
||||
FROM ubuntu:14.04
|
||||
|
||||
RUN apt-get update && apt-get -y upgrade && apt-get -y install wget
|
||||
RUN mkdir -p /mattermost/data
|
||||
|
||||
RUN touch /etc/init/mattermost.conf
|
||||
RUN echo $'start on runlevel [2345]\n\
|
||||
stop on runlevel [016]\n\
|
||||
respawn\n\
|
||||
chdir /mattermost\n\
|
||||
exec bin/platform\n'\
|
||||
>> /etc/init/mattermost.conf
|
||||
|
||||
RUN wget https://github.com/mattermost/platform/releases/download/v1.2.1/mattermost.tar.gz \
|
||||
&& tar -xvzf mattermost.tar.gz && rm mattermost.tar.gz
|
||||
|
||||
ADD config_docker.json /
|
||||
ADD docker-entry.sh /
|
||||
|
||||
RUN chmod +x /docker-entry.sh
|
||||
ENTRYPOINT /docker-entry.sh
|
||||
|
||||
EXPOSE 80
|
||||
Reference in new issue
Block a user