possibility for using the containers with an external reverse proxy

pull/2/head
Marco Kundt 2021-04-15 14:42:55 +02:00
parent 6ec897971c
commit ec9febc868
4 changed files with 29 additions and 16 deletions

18
docker-compose.nginx.yml Normal file
View 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

View File

@ -0,0 +1,6 @@
version: "3"
services:
mattermost:
ports:
- ${APP_PORT}:8065

View File

@ -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

View File

@ -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