File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ PMA_CONTAINER_NAME=REPLACEME-PMA
1818NGINX_VERSION = latest
1919NGINX_CONTAINER_NAME = REPLACEME-NGINX
2020SERVER_NAME = replaceme.com www.replaceme.com
21+ NGINX_CONFIG_PATH = ./nginx/conf.d
2122CERT_PATH = /REPLACEME
2223CERT_CRT = replaceme.crt
2324CERT_KEY = replaceme.key
Original file line number Diff line number Diff line change @@ -52,4 +52,4 @@ services:
5252 volumes :
5353 - ${CERT_PATH}:/etc/nginx/certs
5454 - ./www:/usr/share/nginx/html
55- - ./nginx/conf.d:/etc/nginx/conf.d
55+ - ${NGINX_CONFIG_PATH: ./nginx/conf.d} :/etc/nginx/conf.d
Original file line number Diff line number Diff line change 2626
2727if ls ${CERT_PATH} /$CERT_CRT & > /dev/null && ls ${CERT_PATH} /$CERT_KEY & > /dev/null
2828then
29- sed -e " s/replaceme.crt/$CERT_CRT /g" -e " s/replaceme.key/$CERT_KEY /g" -e " s/SERVERNAME/$SERVER_NAME /g" $PWD /nginx/conf.d /default.conf
29+ sed -e " s/replaceme.crt/$CERT_CRT /g" -e " s/replaceme.key/$CERT_KEY /g" -e " s/SERVERNAME/$SERVER_NAME /g" $PWD /$NGINX_CONFIG_PATH /default.conf
3030 echo " Creating Containers"
3131 docker-compose up --force-recreate -d
3232 exit 0
You can’t perform that action at this time.
0 commit comments