mattermost-docker/docker-compose.yml

60 lines
1.7 KiB
YAML
Raw Normal View History

2021-02-25 15:51:58 +00:00
version: "3"
services:
postgres:
container_name: postgres_mattermost
image: postgres:alpine
restart: unless-stopped
volumes:
- ${POSTGRES_DATA_PATH}:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
nginx:
container_name: nginx_mattermost
image: nginx:alpine
restart: unless-stopped
volumes:
- ${NGINX_MATTERMOST_CONFIG}:/etc/nginx/conf.d/mattermost.conf:ro
2021-04-12 08:36:07 +00:00
- ${NGINX_DHPARAMS_FILE}:/dhparams4096.pem
- ${CERT_PATH}:/cert.pem:ro
- ${KEY_PATH}:/key.pem:ro
2021-02-25 15:51:58 +00:00
- /etc/localtime:/etc/localtime:ro
ports:
- ${HTTPS_PORT}:443
- ${HTTP_PORT}:80
mattermost:
depends_on:
- postgres
- nginx
container_name: mattermost
image: mattermost/mattermost-enterprise-edition:latest
restart: unless-stopped
volumes:
2021-04-12 11:24:32 +00:00
- ${MATTERMOST_CONFIG_PATH}:/mattermost/config:rw
- ${MATTERMOST_DATA_PATH}:/mattermost/data:rw
- ${MATTERMOST_LOGS_PATH}:/mattermost/logs:rw
- ${MATTERMOST_PLUGINS_PATH}:/mattermost/plugins:rw
- ${MATTERMOST_CLIENT_PLUGINS_PATH}:/mattermost/client-plugins:rw
2021-02-25 15:51:58 +00:00
- /etc/localtime:/etc/localtime:ro
environment:
- MM_SERVICESETTINGS_SITEURL
- MM_LOGSETTINGS_CONSOLELEVEL
- MM_LOGSETTINGS_FILELEVEL
- MM_SQLSETTINGS_DRIVERNAME
- MM_SQLSETTINGS_DATASOURCE
- MM_PASSWORDSETTINGS_MINIMUMLENGTH
- MM_PASSWORDSETTINGS_SYMBOL
- MM_PASSWORDSETTINGS_UPPERCASE
# watchtower:
# container_name: watchtower
# image: containrrr/watchtower:latest
# restart: unless-stopped
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock