docker/mattermost/docker-compose.yml

40 lines
1.1 KiB
YAML
Raw Normal View History

2021-05-09 22:07:17 +02:00
version: "3.8"
services:
db:
image: postgres:12.9-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
env_file: secrets/db.secrets
2021-05-09 22:07:17 +02:00
app:
build: .
2023-01-02 14:06:35 +01:00
image: mm_app:7.5.2
2021-05-09 22:07:17 +02:00
depends_on:
- db
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/logs:/mattermost/logs:rw
- ${DATA_PATH}/app/mattermost/plugins:/mattermost/plugins:rw
- ${DATA_PATH}/app/mattermost/client-plugins:/mattermost/client/plugins:rw
- /etc/localtime:/etc/localtime:ro
env_file: secrets/app.secrets
2021-05-09 22:07:17 +02:00
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.services.mm-svc.loadbalancer.server.port=8000"
- "traefik.http.routers.mm.service=mm-svc"
- "traefik.http.routers.mm.rule=Host(`${CN}`)"
2021-05-09 22:07:17 +02:00
networks:
proxy:
external: true