Deliver mattermost as complete stack and remove obsolute psql14 instance.
This commit is contained in:
7
mattermost/.env
Normal file
7
mattermost/.env
Normal file
@@ -0,0 +1,7 @@
|
||||
ADMIN_USER=mattermost
|
||||
ADMIN_PASS=^dyCW*Wxb6Ukba4^54EC
|
||||
|
||||
DB_USER=mattermost
|
||||
DB_NAME=mattermost
|
||||
DB_PASS=skdr02439spfgojsl
|
||||
|
||||
76
mattermost/docker-compose.yaml
Normal file
76
mattermost/docker-compose.yaml
Normal file
@@ -0,0 +1,76 @@
|
||||
version: "3.9"
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
mattermost:
|
||||
name: mattermost
|
||||
external: false
|
||||
|
||||
volumes:
|
||||
mattermost:
|
||||
name: mattermost
|
||||
mattermost-config:
|
||||
name: mattermost-config
|
||||
mattermost-client-plugins:
|
||||
name: mattermost-client-plugins
|
||||
mattermost-plugins:
|
||||
name: mattermost-plugins
|
||||
mattermost-logs:
|
||||
name: mattermost-logs
|
||||
mattermost-db:
|
||||
name: mattermost-db
|
||||
|
||||
services:
|
||||
mattermost:
|
||||
image: mattermost/mattermost-team-edition:6.3
|
||||
container_name: mattermost
|
||||
environment:
|
||||
MM_USERNAME: ${ADMIN_USER}
|
||||
MM_PASSWORD: ${ADMIN_PASS}
|
||||
MM_DBNAME: ${DB_NAME}
|
||||
DB_HOST: mattermost-db
|
||||
DB_PORT_NUMBER: 5432
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- proxy
|
||||
- mattermost
|
||||
depends_on:
|
||||
- mattermost-db
|
||||
volumes:
|
||||
- mattermost:/mattermost/data
|
||||
- mattermost-config:/mattermost/config:rw
|
||||
- mattermost-client-plugins:/mattermost/client/plugins
|
||||
- mattermost-plugins:/mattermost/plugins
|
||||
- mattermost-logs:/mattermost/logs
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.mattermost.entrypoints=web"
|
||||
- "traefik.http.routers.mattermost.rule=Host(`cs-mm.ddnss.de`)"
|
||||
- "traefik.http.routers.mattermost.middlewares=mattermost"
|
||||
- "traefik.http.middlewares.mattermost.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.mattermost-secure.entrypoints=websecure"
|
||||
- "traefik.http.routers.mattermost-secure.rule=Host(`cs-mm.ddnss.de`)"
|
||||
- "traefik.http.routers.mattermost-secure.service=mattermost-secure"
|
||||
- "traefik.http.routers.mattermost-secure.tls=true"
|
||||
- "traefik.http.routers.mattermost-secure.tls.certresolver=myresolver"
|
||||
- "traefik.http.routers.mattermost-secure.tls.domains[0].main=cs-mm.ddnss.de"
|
||||
- "traefik.http.services.mattermost-secure.loadbalancer.server.port=8065"
|
||||
|
||||
mattermost-db:
|
||||
image: postgres:14-alpine
|
||||
container_name: mattermost-db
|
||||
hostname: mattermost-db
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- mattermost-db:/var/lib/postgresql/data
|
||||
networks:
|
||||
- mattermost
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${DB_PASS}
|
||||
POSTGRES_USER: ${DB_USER}
|
||||
POSTGRES_DB: ${DB_NAME}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $DB_USER"]
|
||||
|
||||
|
||||
20137
mattermost/mattermost.sql
Normal file
20137
mattermost/mattermost.sql
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user