46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
# Baza danych dla Mattermosta
|
|
mattermost-db:
|
|
image: postgres:16-alpine
|
|
container_name: mattermost-db
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./volumes/db/var/lib/postgresql/data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_USER=mmuser
|
|
- POSTGRES_PASSWORD=mmuser_password
|
|
- POSTGRES_DB=mattermost
|
|
networks:
|
|
- central_dogma
|
|
|
|
# Aplikacja Mattermost
|
|
mattermost-app:
|
|
image: mattermost/mattermost-team-edition:latest
|
|
container_name: mattermost-app
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- mattermost-db
|
|
volumes:
|
|
- ./volumes/app/config:/mattermost/config
|
|
- ./volumes/app/data:/mattermost/data
|
|
- ./volumes/app/logs:/mattermost/logs
|
|
- ./volumes/app/plugins:/mattermost/plugins
|
|
- ./volumes/app/client/plugins:/mattermost/client/plugins
|
|
- /etc/localtime:/etc/localtime:ro
|
|
environment:
|
|
# Ustawienia połączenia z bazą (zwróć uwagę na hasło i nazwę hosta 'mattermost-db')
|
|
- MM_SQLSETTINGS_DRIVERNAME=postgres
|
|
- MM_SQLSETTINGS_DATASOURCE=postgres://mmuser:mmuser_password@mattermost-db:5432/mattermost?sslmode=disable&connect_timeout=10
|
|
|
|
# Adres strony (ważne dla linków w mailach/zaproszeniach)
|
|
- MM_SERVICESETTINGS_SITEURL=https://mattermost.archvium.eu
|
|
networks:
|
|
- central_dogma
|
|
|
|
# Używamy tej samej sieci co GitLab i Nginx Proxy Manager
|
|
networks:
|
|
central_dogma:
|
|
external: true
|