Skip to content

Instantly share code, notes, and snippets.

@lfache
lfache / docker-compose.yaml
Created June 25, 2020 11:23
Mattermost Team edition
app:
build:
context: app
# uncomment following lines for team edition or change UID/GID
args:
- edition=team
- PUID=1000
- PGID=1000
restart: unless-stopped
@lfache
lfache / docker-compose-mattermost-web.yaml
Created June 25, 2020 11:24
Remove this line on docker-compose.yaml
web:
build: web
ports:
- "80:80"
- "443:443"
read_only: true
restart: unless-stopped
volumes:
# This directory must have cert files if you want to enable SSL
- ./volumes/web/cert:/cert:ro
@lfache
lfache / docker-compose.yml
Created June 25, 2020 13:42
Mattermost docker-compose.yml with Traefik
version: "3"
services:
db:
build: db
read_only: true
restart: unless-stopped
volumes:
- ./volumes/db/var/lib/postgresql/data:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
environment:
@lfache
lfache / docker-compose.yaml
Created July 15, 2020 12:46
Hardened Traefik sample with whoami + HTTPS everywhere/redirect
version: "3.8"
services:
dockerproxy:
image: tecnativa/docker-socket-proxy
environment:
- CONTAINERS=1
networks:
- socket_docker
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"