forked from mirrors/mattermost-docker
possibility for using the containers with an external reverse proxy
This commit is contained in:
parent
6ec897971c
commit
ec9febc868
18
docker-compose.nginx.yml
Normal file
18
docker-compose.nginx.yml
Normal file
@ -0,0 +1,18 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
nginx:
|
||||
container_name: nginx_mattermost
|
||||
image: nginx:${NGINX_IMAGE_TAG}
|
||||
restart: ${RESTART_POLICY}
|
||||
volumes:
|
||||
- ${NGINX_MATTERMOST_CONFIG}:/etc/nginx/conf.d/mattermost.conf:ro
|
||||
- ${NGINX_DHPARAMS_FILE}:/dhparams4096.pem
|
||||
- ${CERT_PATH}:/cert.pem:ro
|
||||
- ${KEY_PATH}:/key.pem:ro
|
||||
environment:
|
||||
# timezone inside container
|
||||
- TZ
|
||||
ports:
|
||||
- ${HTTPS_PORT}:443
|
||||
- ${HTTP_PORT}:80
|
6
docker-compose.without-nginx.yml
Normal file
6
docker-compose.without-nginx.yml
Normal file
@ -0,0 +1,6 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
mattermost:
|
||||
ports:
|
||||
- ${APP_PORT}:8065
|
@ -18,22 +18,6 @@ services:
|
||||
- POSTGRES_PASSWORD
|
||||
- POSTGRES_DB
|
||||
|
||||
nginx:
|
||||
container_name: nginx_mattermost
|
||||
image: nginx:${NGINX_IMAGE_TAG}
|
||||
restart: ${RESTART_POLICY}
|
||||
volumes:
|
||||
- ${NGINX_MATTERMOST_CONFIG}:/etc/nginx/conf.d/mattermost.conf:ro
|
||||
- ${NGINX_DHPARAMS_FILE}:/dhparams4096.pem
|
||||
- ${CERT_PATH}:/cert.pem:ro
|
||||
- ${KEY_PATH}:/key.pem:ro
|
||||
environment:
|
||||
# timezone inside container
|
||||
- TZ
|
||||
ports:
|
||||
- ${HTTPS_PORT}:443
|
||||
- ${HTTP_PORT}:80
|
||||
|
||||
mattermost:
|
||||
depends_on:
|
||||
- postgres
|
||||
|
@ -50,6 +50,11 @@ MATTERMOST_CLIENT_PLUGINS_PATH=./data/mattermost/client-plugins
|
||||
MATTERMOST_IMAGE=mattermost-enterprise-edition
|
||||
MATTERMOST_IMAGE_TAG=latest
|
||||
|
||||
## The app port is only relevant for using Mattermost without the nginx container as reverse proxy. This is not meant
|
||||
## to be used with the internal HTTP server exposed but rather in case one wants to host several services on one host
|
||||
## or for using it behind another existing reverse proxy.
|
||||
APP_PORT=8065
|
||||
|
||||
## Configuration settings for Mattermost. Documentation on the variables and the settings itself can be found at
|
||||
## https://docs.mattermost.com/administration/config-settings.html
|
||||
## Keep in mind that variables set here will take precedence over the same setting in config.json. This includes
|
||||
|
Loading…
Reference in New Issue
Block a user