You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
James Harmison 8767a7f6fc
Attempt to correct env link
2 weeks ago
env No preview banner 2 weeks ago
podman Ensure auto_update persists 2 weeks ago
.drone.yml Corrected image name 2 weeks ago
.gitignore Initial commit 2 weeks ago
Containerfile Converted to team and added signature verification 2 weeks ago
LICENSE Initial commit 2 weeks ago
README.md Attempt to correct env link 2 weeks ago
version.txt Initial commit 2 weeks ago

README.md

Mattermost Server

Build Status

Builds from main are pushed to Harbor

Configuration

Please see the documentation on the environment files provided in the env subdirectory.

Use

Please see the podman README for information on how to use podman to run Mattermost Server.

Backup and Restore

Use a variation of the following to make backups:

mybackup_dir=~/backups # Or some mounted folder you'd like to do backups to
mkdir -p "$mybackup_dir"
for volume in mattermost-server-data mattermost-db; do
    podman run --rm -v $volume:/volume -v "$mybackup_dir":/backups alpine tar cvzf /backups/$volume-$(date +%Y-%m-%d).tgz -C /volume ./
done

In order to restore those backups, you would run something like:

mybackup_dir=~/backups # Or some mounted folder you'd like to restore backups from
backups=$(for backup in "$mybackup_dir"/mattermost-server-data-*.tgz; do
    echo -n "$backup" | rev | cut -d. -f2 | rev | tail -c11
done) # This pulls the datestamps and sizes for existing backups if formatted like above
select backup in $backups; do [ "$backup" ] && break || echo "Unknown selection: $REPLY" >&2; done # this lets you pick from the existing backups
for volume in mattermost-server-data mattermost-db; do
    podman run --rm -v $volume:/volume -v "$mybackup_dir":/backups alpine sh -c "rm -rf /volume/* /volume/..?* /volume/.[!.]* ; tar xvzf /backups/$volume-$backup.tgz -C /volume"
done

License

Mattermost Server, when used from compiled binaries, is licensed under the MIT License. A copy of that license is present in the server's directory at /opt/mattermost/MIT-COMPILED-LICENSE.md. The code in this repository, which builds and releases container images based on that MIT licensed code, is licensed under the BSD 2-Clause License. A copy of that license is present at /LICENSE.