Skip to content

Docker image to run Mattermost with a Postgres database on arm

Notifications You must be signed in to change notification settings

dm-coding/docker-mattermost

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Mattermost

Simple Docker image to run Mattermost with a Postgres database on arm. Suitable for deployment on Scaleway or a Rasberry Pi.

This image does not include the database.

Use the official Docker image https://hub.docker.com/r/mattermost/platform/ for a full install in a single container.

Usage

Start a database container

docker run -it --link my-postgres:postgres --rm postgres sh -c 'exec psql -h "$POSTGRES_PORT_5432_TCP_ADDR" -p "$POSTGRES_PORT_5432_TCP_PORT" -U mmuser dbmattermost'

Start the Mattermost container

docker run --name my-mmapp --link my-postgres:db -e DB_USER=mmuser -e DB_PASS=secret -e DB_NAME=dbmattermost -p 0.0.0.0:8065:8065 -d geelweb/mattermost

Browse localhost on port 8065.

Env properties

DB_USER: The PostgreSQL database user.

DB_PASS: The PostgreSQL database password.

DB_NAME: The PostgreSQL database name

Example of usage with Compose

Create a Compose file

# docker-compose.yml
postgres:
    image: postgres:9.4
    environment:
        - POSTGRES_USER=mmuser
        - POSTGRES_PASSWORD=mmuser_password
        - POSTGRES_DB=mattermost
app:
    image: geelweb/mattermost:latest
    ports:
        - "0.0.0.0:8065:8065"
    environment:
        - DB_USER=mmuser
        - DB_PASS=mmuser_password
        - DB_NAME=mattermost
    links:
        - postgres:db

Pull the images

docker-compose pull

Build the database first to avoid connection issues

docker-compose up postgres

Launch the app

docker-compose up

Browse your web-server on port 8065.

About

Docker image to run Mattermost with a Postgres database on arm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Shell 100.0%