docker/mattermost/testing/docker-compose.yml

43 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2021-11-10 00:45:27 +01:00
version: "3.8"
services:
db:
2024-02-13 13:05:48 +01:00
image: postgres:12.18-alpine
2021-11-10 00:45:27 +01: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
app:
2024-02-13 13:05:48 +01:00
image: mm_app:${MM_VERSION}
build:
context: https://github.com/mattermost/mattermost.git#v${MM_VERSION}:server/build
args:
MM_PACKAGE: https://releases.mattermost.com/${MM_VERSION}/mattermost-team-${MM_VERSION}-linux-amd64.tar.gz
2021-11-10 00:45:27 +01:00
depends_on:
- db
2024-02-13 13:05:48 +01:00
security_opt:
- no-new-privileges:true
2021-11-10 00:45:27 +01:00
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/plugins:/mattermost/plugins:rw
- /etc/localtime:/etc/localtime:ro
env_file: secrets/app.secrets
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
2024-02-13 13:05:48 +01:00
- "traefik.http.services.mm-test-svc.loadbalancer.server.port=8065"
- "traefik.http.routers.mm-test.entrypoints=websecure"
- "traefik.http.routers.mm-test.rule=Host(`${CN}`)"
2021-11-10 00:45:27 +01:00
networks:
proxy:
external: true