docker-compose.yml 1.31 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
7
8

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

services:
  mattermost:
Theophane Durand's avatar
Theophane Durand committed
19
    image: registry.picasoft.net/pica-mattermost:5.27.0
20
    build: .
21
22
23
24
25
26
27
    container_name: mattermost-app
    volumes:
      - mattermost-config:/mattermost/config
      - mattermost-data:/mattermost/data
      - mattermost-plugins:/mattermost/plugins
      - /etc/localtime:/etc/localtime:ro
    environment:
28
      - MM_SITEURL=https://team.picasoft.net
29
30
    env_file: ./secrets/mattermost-db.secrets
    labels:
31
32
33
34
      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
35
    networks:
36
37
      - proxy
      - mattermost
38
39
    depends_on:
      - mattermost-db
40
41
42
    restart: unless-stopped

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