docker/mattermost/testing/docker-compose.yml

47 lines
1.7 KiB
YAML
Raw Normal View History

2021-11-10 00:45:27 +01:00
version: "3.8"
services:
db:
image: postgres:12.8-alpine
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:
build: .
image: mm_app:6.0.2
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
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.services.mm-test-web-svc.loadbalancer.server.port=8000"
- "traefik.http.routers.mm-test-https.service=mm-test-web-svc"
- "traefik.http.middlewares.mm-test-redirect-websecure.redirectscheme.scheme=https"
- "traefik.http.routers.mm-test-http.middlewares=mm-test-redirect-websecure"
- "traefik.http.routers.mm-test-http.rule=Host(`${CN}`)"
- "traefik.http.routers.mm-test-http.entrypoints=web"
- "traefik.http.routers.mm-test-https.rule=Host(`${CN}`)"
- "traefik.http.routers.mm-test-https.entrypoints=websecure"
- "traefik.http.routers.mm-test-https.tls=true"
- "traefik.http.routers.mm-test-https.tls.certresolver=myhttpchallenge"
networks:
proxy:
external: true