Commit 557608c6 authored by Stephane Crozat's avatar Stephane Crozat
Browse files

Updating README, correcting git run command

parent a7479b22
......@@ -10,23 +10,31 @@ https://docs.mattermost.com/deployment/on-boarding.html#do-not-manipulate-the-ma
## Usage:
docker run -d \
--env POSTGRES_HOST=postgres.host \
--env POSTGRES_PORT=27017 \
--env POSTGRES_USER=admin \
--env POSTGRES_PASS=password \
--env MATTERMOST_TEAM=team\
docker run -d \
--name mattermost-cleaner \
--env POSTGRES_HOST=mattermost-db \
--env POSTGRES_PORT=5432 \
--env POSTGRES_USER=mattermost \
--env POSTGRES_PASS=password \
--env POSTGRES_DB=mattermost \
--env MATTERMOST_TEAM=team \
--net docker_default \
--link mattermost-db:mattermost-db \
registry.picasoft.net:5000/mattermost-cleaner:alpha
## Parameters
POSTGRES_HOST the host/ip of your postgres database
POSTGRES_PORT the port number of your postgres database
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
POSTGRES_HOST the name of the container
POSTGRES_PORT the port number of the postgres database
POSTGRES_USER the username of the postgres database
POSTGRES_PASS the password of the postgres database
POSTGRES_DB the name of the postgres database
CRON_TIME the interval of cron job to run postgresdump. `0 * * * *` by default, which is every hour
## Docker-compose
version: "2"
services:
mattermost-cleaner:
image: registry.picasoft.net:5000/mattermost-cleaner:alpha
container_name: mattermost-cleaner
......@@ -36,7 +44,6 @@ https://docs.mattermost.com/deployment/on-boarding.html#do-not-manipulate-the-ma
- POSTGRES_HOST=mattermost-db
- POSTGRES_PORT=5432
- POSTGRES_USER=mattermost
- POSTGRES_PASS=...
- POSTGRES_PASS=password
- POSTGRES_DB=mattermost
- MATTERMOST_TEAM=name
- MATTERMOST_TEAM=team
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment