Deliver mattermost as complete stack and remove obsolute psql14 instance.
This commit is contained in:
@@ -9,16 +9,6 @@ networks:
|
|||||||
volumes:
|
volumes:
|
||||||
semaphore:
|
semaphore:
|
||||||
name: semaphore
|
name: semaphore
|
||||||
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
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
semaphore:
|
semaphore:
|
||||||
@@ -49,39 +39,6 @@ services:
|
|||||||
- "traefik.http.routers.semaphore.service=semaphore"
|
- "traefik.http.routers.semaphore.service=semaphore"
|
||||||
- "traefik.http.services.semaphore.loadbalancer.server.port=3000"
|
- "traefik.http.services.semaphore.loadbalancer.server.port=3000"
|
||||||
|
|
||||||
mattermost:
|
|
||||||
image: mattermost/mattermost-team-edition:6.3
|
|
||||||
container_name: mattermost
|
|
||||||
environment:
|
|
||||||
MM_USERNAME: mattermost
|
|
||||||
MM_PASSWORD: ^dyCW*Wxb6Ukba4^54EC
|
|
||||||
MM_DBNAME: mattermost
|
|
||||||
DB_HOST: psql14
|
|
||||||
DB_PORT_NUMBER: 5432
|
|
||||||
restart: unless-stopped
|
|
||||||
networks:
|
|
||||||
- proxy
|
|
||||||
- internal
|
|
||||||
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"
|
|
||||||
|
|
||||||
watchtower:
|
watchtower:
|
||||||
image: containrrr/watchtower
|
image: containrrr/watchtower
|
||||||
container_name: watchtower
|
container_name: watchtower
|
||||||
|
|||||||
@@ -16,12 +16,6 @@ volumes:
|
|||||||
name: mysql8-data
|
name: mysql8-data
|
||||||
mysql8-backup:
|
mysql8-backup:
|
||||||
name: mysql8-backup
|
name: mysql8-backup
|
||||||
psql14-data:
|
|
||||||
name: psql14-data
|
|
||||||
psql14-backup:
|
|
||||||
name: psql14-backup
|
|
||||||
redis-data:
|
|
||||||
name: redis-data
|
|
||||||
portainer:
|
portainer:
|
||||||
name: portainer
|
name: portainer
|
||||||
|
|
||||||
@@ -100,18 +94,3 @@ services:
|
|||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "mysqladmin ping -uroot -p$$(DB_ROOT_PW)"]
|
test: ["CMD-SHELL", "mysqladmin ping -uroot -p$$(DB_ROOT_PW)"]
|
||||||
|
|
||||||
psql14:
|
|
||||||
image: postgres:14-alpine
|
|
||||||
container_name: psql14
|
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
|
||||||
POSTGRES_PASSWORD: ${DB_ROOT_PW}
|
|
||||||
volumes:
|
|
||||||
- psql14-data:/var/lib/postgresql/data
|
|
||||||
- psql14-backup:/var/backups
|
|
||||||
- ${PWD}//postgres_databases.sql:/docker-entrypoint-initdb.d/01_create_databases.sql
|
|
||||||
networks:
|
|
||||||
- internal
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
||||||
|
|
||||||
|
|||||||
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
@@ -1,6 +0,0 @@
|
|||||||
-- create the databases;
|
|
||||||
CREATE DATABASE mattermost;
|
|
||||||
|
|
||||||
-- create users and privileges
|
|
||||||
CREATE USER mattermost WITH PASSWORD 'skdr02439spfgojsl';
|
|
||||||
GRANT ALL PRIVILEGES ON DATABASE mattermost TO mattermost;
|
|
||||||
Reference in New Issue
Block a user