docker-compose.yml 1.13 KB
Newer Older
1
version : "2.4"
Quentin Duchemin's avatar
Quentin Duchemin committed
2
3
4
5
networks:
  docker_default:
    external: true
    name: "docker_default"
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

volumes:
  mattermost-config:
    external: true
  mattermost-data:
    external: true
  mattermost-plugins:
    external: true
  mattermost-db:
    external: true

services:
  mattermost:
    image: registry.picasoft.net/pica-mattermost:5.18.0
    container_name: mattermost-app
    links:
      - mattermost-db:mattermost-db
    volumes:
      - mattermost-config:/mattermost/config
      - mattermost-data:/mattermost/data
      - mattermost-plugins:/mattermost/plugins
      - /etc/localtime:/etc/localtime:ro
    environment:
      - DB_HOST=mattermost-db
    env_file: ./secrets/mattermost-db.secrets
    labels:
      - "traefik.frontend.rule=Host:team.picasoft.net"
      - "traefik.port=8000"
      - "traefik.frontend.passHostHeader=true"
      - "traefik.enable=true"
    restart: unless-stopped

  mattermost-db:
    image: postgres:9.4-alpine
    container_name: mattermost-db
    volumes:
      - mattermost-db:/var/lib/postgresql/data
      - /etc/localtime:/etc/localtime:ro
    env_file: ./secrets/mattermost-db.secrets
    restart: unless-stopped