docker-compose.yml 1.33 KB
Newer Older
1
version : "3.7"
Quentin Duchemin's avatar
Quentin Duchemin committed
2
networks:
3
  proxy:
Quentin Duchemin's avatar
Quentin Duchemin committed
4
    external: true
5
  mattermost:
6
    name: "mattermost"
7
8
9

volumes:
  mattermost-config:
10
    name: mattermost-config
11
  mattermost-data:
12
    name: mattermost-data
13
  mattermost-plugins:
14
    name: mattermost-plugins
15
  mattermost-db:
16
    name: mattermost-db
17
18
19

services:
  mattermost:
20
    image: registry.picasoft.net/pica-mattermost:5.31.1
21
    build: .
22
23
24
25
26
27
28
    container_name: mattermost-app
    volumes:
      - mattermost-config:/mattermost/config
      - mattermost-data:/mattermost/data
      - mattermost-plugins:/mattermost/plugins
      - /etc/localtime:/etc/localtime:ro
    environment:
29
      - MM_SITEURL=https://team.picasoft.net
30
31
    env_file: ./secrets/mattermost-db.secrets
    labels:
32
33
34
35
      traefik.http.routers.mattermost-app.entrypoints: websecure
      traefik.http.routers.mattermost-app.rule: Host(`team.picasoft.net`)
      traefik.http.services.mattermost-app.loadbalancer.server.port: 8000
      traefik.enable: true
36
    networks:
37
38
      - proxy
      - mattermost
39
40
    depends_on:
      - mattermost-db
41
42
43
    restart: unless-stopped

  mattermost-db:
44
    image: postgres:12-alpine
45
46
47
48
49
    container_name: mattermost-db
    volumes:
      - mattermost-db:/var/lib/postgresql/data
      - /etc/localtime:/etc/localtime:ro
    env_file: ./secrets/mattermost-db.secrets
50
    networks:
51
      - mattermost
52
    restart: unless-stopped