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

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

services:
  mattermost:
Quentin Duchemin's avatar
Quentin Duchemin committed
19
    image: registry.picasoft.net/pica-mattermost:5.21.0
20
21
22
23
24
25
26
27
28
    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:
29
      - MM_SITEURL=https://team.picasoft.net
30
31
32
33
34
35
    env_file: ./secrets/mattermost-db.secrets
    labels:
      - "traefik.frontend.rule=Host:team.picasoft.net"
      - "traefik.port=8000"
      - "traefik.frontend.passHostHeader=true"
      - "traefik.enable=true"
36
37
38
39
    networks:
      - docker_default
    depends_on:
      - mattermost-db
40
41
42
43
44
45
46
47
48
    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
49
50
    networks:
      - docker_default
51
    restart: unless-stopped