Mattermost unter Docker aufsetzen
Nutzen Sie folgenden Code für das Docker-Compose Script:
version: "2.4" services: postgres: image: postgres:13-alpine restart: unless-stopped container_name: 26_Mattermost_DB security_opt: - no-new-privileges:true pids_limit: 100 read_only: true tmpfs: - /tmp - /var/run/postgresql volumes: - /docker/26_Mattermost/db:/var/lib/postgresql/data environment: # timezone inside container - Europe/Berlin # necessary Postgres options/variables - POSTGRES_USER=mattermostuser - POSTGRES_PASSWORD=aHyihLwWNkk6e3WZMkrquKf4HAb53 - POSTGRES_DB=mattermost networks: mattermost-nw: ipv4_address: 172.18.26.11 mattermost: depends_on: - postgres image: mattermost/mattermost-enterprise-edition:latest container_name: 26_Mattermost restart: unless-stopped security_opt: - no-new-privileges:true pids_limit: 200 read_only: false tmpfs: - /tmp volumes: - /docker/26_Mattermost/conf:/mattermost/config:rw - /docker/26_Mattermost/data:/mattermost/data:rw - /docker/26_Mattermost/logs:/mattermost/logs:rw - /docker/26_Mattermost/plugins-server:/mattermost/plugins:rw - /docker/26_Mattermost/plugins-client:/mattermost/client/plugins:rw - /docker/26_Mattermost/index:/mattermost/bleve-indexes:rw environment: - Europe/Berlin - MM_USERNAME=mattermostuser - MM_PASSWORD=aHyihLwWNkk6e3WZMkrquKf4HAb53 - MM_DBNAME=mattermost # necessary Mattermost options/variables (see env.example) # - postgres - MM_SQLSETTINGS_DATASOURCE=postgres://mattermostuser:aHyihLwWNkk6e3WZMkrquKf4HAb53@postgres:5432/mattermost?sslmode=disable&connect_timeout=10 # necessary for bleve - /mattermost/bleve-indexes # additional settings - https://com.scheffler-it.de ports: - 8065:8065 - 8443:8443/udp - 8443:8443/tcp networks: mattermost-nw: ipv4_address: 172.18.26.12 networks: mattermost-nw: driver: bridge ipam: config: - subnet: 172.18.26.0/24 gateway: 172.18.26.1
Setzen Sie ansachließend die Ordnerberechtigungen. Gebene Sie allen Ordnern die gleichen Berechtigungen außer dem für die Datenbank.
sudo chown -R 2000:2000 conf/ data/ index/ logs/ plugins-client/ plugins-server/