forked from archlemon/docker-proxy-env
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
31 lines (22 loc) · 920 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#/bin/bash
PROXY_PATH=/cnt/.proxy
PWD=$(pwd)
if [ ! -d /cnt ]
then
mkdir /cnt
fi
git clone https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion.git $PROXY_PATH
cd $PROXY_PATH
git reset --hard c0d0ce511cae49b01e6b4ab9536e5aa7bd0afe22
touch ${PROXY_PATH}/.env
echo "NGINX_WEB=nginx-web" >> ${PROXY_PATH}/.env
echo "DOCKER_GEN=nginx-gen" >> ${PROXY_PATH}/.env
echo "LETS_ENCRYPT=nginx-letsencrypt" >> ${PROXY_PATH}/.env
echo "IP=0.0.0.0" >> ${PROXY_PATH}/.env
echo "NETWORK=proxy" >> ${PROXY_PATH}/.env
echo "NGINX_FILES_PATH=./nginx-data" >> ${PROXY_PATH}/.env
curl https://raw.githubusercontent.com/ethercreative/docker-proxy-env/master/docker-compose.override.yml >> ${PROXY_PATH}/docker-compose.override.yml
curl https://raw.githubusercontent.com/ethercreative/docker-proxy-env/master/proxy.conf >> ${PROXY_PATH}/proxy.conf
cd $PROXY_PATH
${PROXY_PATH}/bin/fresh-start.sh
cd $PWD