2021-05-09 22:07:17 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
2024-02-13 12:56:20 +01:00
|
|
|
image: postgres:12.18-alpine
|
2021-05-09 22:07:17 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ${DATA_PATH}/db/var/lib/postgresql/data:/var/lib/postgresql/data
|
|
|
|
- ${DATA_PATH}/db/.pgpass:/root/.pgpass
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2021-05-23 18:14:53 +02:00
|
|
|
env_file: secrets/db.secrets
|
2023-05-26 17:06:36 +02:00
|
|
|
labels:
|
|
|
|
- "co.elastic.logs/module=postgresql"
|
|
|
|
- "co.elastic.logs/fileset=log"
|
2021-05-09 22:07:17 +02:00
|
|
|
|
|
|
|
app:
|
2024-02-13 12:58:55 +01:00
|
|
|
image: mm_app:${MM_VERSION}
|
2023-02-13 11:05:56 +01:00
|
|
|
build:
|
2024-02-13 12:58:55 +01:00
|
|
|
context: https://github.com/mattermost/mattermost.git#v${MM_VERSION}:server/build
|
2023-02-13 11:05:56 +01:00
|
|
|
args:
|
2024-02-13 12:58:55 +01:00
|
|
|
MM_PACKAGE: https://releases.mattermost.com/${MM_VERSION}/mattermost-team-${MM_VERSION}-linux-amd64.tar.gz
|
2021-05-09 22:07:17 +02:00
|
|
|
depends_on:
|
|
|
|
- db
|
2024-02-13 12:58:55 +01:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
2021-05-09 22:07:17 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- proxy
|
|
|
|
volumes:
|
|
|
|
- ${DATA_PATH}/app/mattermost/config:/mattermost/config:rw
|
|
|
|
- ${DATA_PATH}/app/mattermost/data:/mattermost/data:rw
|
|
|
|
- ${DATA_PATH}/app/mattermost/plugins:/mattermost/plugins:rw
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2021-05-23 18:14:53 +02:00
|
|
|
env_file: secrets/app.secrets
|
2021-05-09 22:07:17 +02:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.docker.network=proxy"
|
2024-02-13 12:58:55 +01:00
|
|
|
- "traefik.http.services.mm-svc.loadbalancer.server.port=8065"
|
2023-02-06 12:32:05 +01:00
|
|
|
- "traefik.http.routers.mm.entrypoints=websecure"
|
2023-02-01 18:43:13 +01:00
|
|
|
- "traefik.http.routers.mm.rule=Host(`${CN}`)"
|
2021-05-09 22:07:17 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|