Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Picasoft
Technique
Dockerfiles
Commits
9cfdfee4
Commit
9cfdfee4
authored
7 years ago
by
Stephane Crozat
Browse files
Options
Downloads
Patches
Plain Diff
container works, update README, adding warning
parent
e6eeba86
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mattermost-cleaner/README.md
+23
-4
23 additions, 4 deletions
mattermost-cleaner/README.md
with
23 additions
and
4 deletions
mattermost-cleaner/README.md
+
23
−
4
View file @
9cfdfee4
#
postgres-backup
#
mattermost-cleaner
This image delete automatic messages from Mattermost teams
(previous version, only run on "nx1718").
This image runs a cron to delete automatic messages from Mattermost teams (alpha version, only run on one team).
Delete command is run once when container starts and then every hour (depending on parameter) via cron.
**Warning**
The commande delete directly data from database, which is bad pratice
https://docs.mattermost.com/install/troubleshooting.html#important-notes
https://docs.mattermost.com/deployment/on-boarding.html#do-not-manipulate-the-mattermost-database
Delete command is run first when container starts and then every hour.
## Usage:
...
...
@@ -21,3 +24,19 @@ Delete command is run first when container starts and then every hour.
POSTGRES_USER the username of your postgres database
POSTGRES_PASS the password of your postgres database
CRON_TIME the interval of cron job to run postgresdump. `0 * * * *` by default, which is every hour
## Docker-compose
mattermost-cleaner:
image: registry.picasoft.net:5000/mattermost-cleaner:alpha
container_name: mattermost-cleaner
links:
-
mattermost-db:mattermost-db
environment:
-
POSTGRES_HOST=mattermost-db
-
POSTGRES_PORT=5432
-
POSTGRES_USER=mattermost
-
POSTGRES_PASS=...
-
POSTGRES_DB=mattermost
-
MATTERMOST_TEAM=name
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment