mattermost-docker/env.example

74 lines
3.3 KiB
Plaintext
Raw Normal View History

# Container settings
## Timezone inside the containers. The value needs to be in the form 'Europe/Berlin'.
## A list of these tz database names can be looked up at Wikipedia
## https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TZ=UTC
2021-04-12 13:02:03 +00:00
RESTART_POLICY=unless-stopped
2021-02-25 15:51:58 +00:00
# Postrges settings
## Documentation for this image and available settings can be found on hub.docker.com
## https://hub.docker.com/_/postgres
2021-04-12 12:18:38 +00:00
## Please keep in mind this will create a superuser and it's recommended to use a less privileged
## user to connect to the database.
#TODO: add link to user migration guide
2021-04-12 12:05:15 +00:00
POSTGRES_IMAGE_TAG=alpine
2021-04-12 12:18:38 +00:00
POSTGRES_DATA_PATH=./volumes/db/var/lib/postgresql/data
2021-04-12 12:05:15 +00:00
2021-02-25 15:51:58 +00:00
POSTGRES_USER=mmuser
POSTGRES_PASSWORD=mmuser_password
POSTGRES_DB=mattermost
# Nginx
## The nginx container will use a configuration found at the NGINX_MATTERMOST_CONFIG. The config aims
## to be secure and uses a catch-all server vhost which will work out-of-the-box. For additional settings
2021-04-12 12:18:38 +00:00
## or changes ones can edit it or provide another config. Important note: inside the container, nginx sources
## every config file inside */etc/nginx/conf.d* ending with a *.conf* file extension.
2021-02-25 15:51:58 +00:00
## Inside the container the uid and gid is 101. The folder owner can be set with
## `sudo chown -R 101:101 ./data/mattermost`.
2021-04-12 12:05:15 +00:00
NGINX_IMAGE_TAG=alpine
2021-02-25 15:51:58 +00:00
NGINX_MATTERMOST_CONFIG=./nginx/mattermost.conf
2021-04-12 08:36:07 +00:00
NGINX_DHPARAMS_FILE=./nginx/dhparams4096.pem
CERT_PATH=./certs/fullchain.pem
KEY_PATH=./certs/privkey.pem
2021-02-25 15:51:58 +00:00
## Exposed ports to the host. Inside the container 80 and 443 will be used
HTTPS_PORT=443
HTTP_PORT=80
# Mattermost settings
## Inside the container the uid and gid is 2000. The folder owner can be set with
## `sudo chown -R 2000:2000 ./data/mattermost`.
MATTERMOST_CONFIG_PATH=./data/mattermost/config
MATTERMOST_DATA_PATH=./data/mattermost/data
MATTERMOST_LOGS_PATH=./data/mattermost/logs
MATTERMOST_PLUGINS_PATH=./data/mattermost/plugins
MATTERMOST_CLIENT_PLUGINS_PATH=./data/mattermost/client-plugins
2021-04-12 12:05:15 +00:00
MATTERMOST_IMAGE=mattermost-enterprise-edition
MATTERMOST_IMAGE_TAG=latest
## The app port is only relevant for using Mattermost without the nginx container as reverse proxy. This is not meant
## to be used with the internal HTTP server exposed but rather in case one wants to host several services on one host
## or for using it behind another existing reverse proxy.
APP_PORT=8065
2021-02-25 15:51:58 +00:00
## Configuration settings for Mattermost. Documentation on the variables and the settings itself can be found at
## https://docs.mattermost.com/administration/config-settings.html
## Keep in mind that variables set here will take precedence over the same setting in config.json. This includes
## the system console as well and settings set with env variables will be greyed out.
## Below one can find necessary settings to spin up the Mattermost container
MM_SQLSETTINGS_DRIVERNAME=postgres
MM_SQLSETTINGS_DATASOURCE=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=disable&connect_timeout=10
## Example settings (any additional setting added here also needs to be introduced in the docker-compose.yml)
MM_SERVICESETTINGS_SITEURL=https://mm.example.com
MM_LOGSETTINGS_CONSOLELEVEL=debug
MM_LOGSETTINGS_FILELEVEL=debug
MM_PASSWORDSETTINGS_MINIMUMLENGTH=6
MM_PASSWORDSETTINGS_SYMBOL='false'
MM_PASSWORDSETTINGS_UPPERCASE='false'