use path to nginx config instead of config file itself

This commit is contained in:
Marco Kundt 2021-04-27 12:05:52 +02:00
parent d09edec595
commit 848d38c88c
3 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,7 @@ services:
image: nginx:${NGINX_IMAGE_TAG}
restart: ${RESTART_POLICY}
volumes:
- ${NGINX_MATTERMOST_CONFIG}:/etc/nginx/conf.d/mattermost.conf:ro
- ${NGINX_CONFIG_PATH}:/etc/nginx/conf.d:ro
- ${NGINX_DHPARAMS_FILE}:/dhparams4096.pem
- ${CERT_PATH}:/cert.pem:ro
- ${KEY_PATH}:/key.pem:ro

View File

@ -28,7 +28,8 @@ POSTGRES_DB=mattermost
## `sudo chown -R 101:101 ./nginx` if needed.
NGINX_IMAGE_TAG=alpine
NGINX_MATTERMOST_CONFIG=./nginx/mattermost.conf
## The folder containing server blocks and any additional config to nginx.conf
NGINX_CONFIG_PATH=./nginx/conf.d
NGINX_DHPARAMS_FILE=./nginx/dhparams4096.pem
CERT_PATH=./volumes/web/cert/cert.pem