mattermost-docker/docker-compose.nginx.yml
Marco Kundt 23e6eaf212 Revert "hardening options"
This reverts commit e8867805fe.
2021-05-11 17:39:34 +02:00

31 lines
730 B
YAML

version: "3"
services:
nginx:
depends_on:
- mattermost
container_name: nginx_mattermost
image: nginx:${NGINX_IMAGE_TAG}
restart: ${RESTART_POLICY}
volumes:
- ${NGINX_CONFIG_PATH}:/etc/nginx/conf.d:ro
- ${NGINX_DHPARAMS_FILE}:/dhparams4096.pem
- ${CERT_PATH}:/cert.pem:ro
- ${KEY_PATH}:/key.pem:ro
- shared-webroot:/usr/share/nginx/html
environment:
# timezone inside container
- TZ
ports:
- ${HTTPS_PORT}:443
- ${HTTP_PORT}:80
# Shared volume for Let's Encrypt certificate renewal with a webroot
volumes:
shared-webroot:
# This network name is being used for Let's Encrypt certificate renewal
networks:
default:
name: mattermost