Correction nginx install
This commit is contained in:
parent
7d17c873ab
commit
26faa6189e
@ -1,11 +1,11 @@
|
|||||||
mkdir /home/c2a/conf
|
mkdir /home/c2a/conf
|
||||||
mkdir /home/c2a/conf/nginx
|
mkdir /home/c2a/conf/nginx
|
||||||
mkdir /home/c2a/conf/nginx/applications
|
mkdir /home/c2a/conf/nginx/applications
|
||||||
cp conf/nginx.conf /home/c2a/conf/nginx/
|
cp ./docker/conf/nginx.conf /home/c2a/conf/nginx/
|
||||||
cp conf/mime.types /home/c2a/conf/nginx/
|
cp ./docker/conf/mime.types /home/c2a/conf/nginx/
|
||||||
cp conf/applications/* /home/c2a/conf/nginx/applications/
|
cp ./docker/conf/applications/* /home/c2a/conf/nginx/applications/
|
||||||
docker run --detach \
|
docker run --detach \
|
||||||
--name gitlab \
|
--name nginx \
|
||||||
--publish 80:80 \
|
--publish 80:80 \
|
||||||
--publish 443:443 \
|
--publish 443:443 \
|
||||||
--volume /home/c2a/conf/nginx/nginx.conf:/etc/nginx/nginx.conf \
|
--volume /home/c2a/conf/nginx/nginx.conf:/etc/nginx/nginx.conf \
|
||||||
|
@ -9,7 +9,7 @@ apt-get install \
|
|||||||
curl \
|
curl \
|
||||||
gnupg2 \
|
gnupg2 \
|
||||||
software-properties-common
|
software-properties-common
|
||||||
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
|
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
|
||||||
apt-key fingerprint 0EBFCD88
|
apt-key fingerprint 0EBFCD88
|
||||||
add-apt-repository \
|
add-apt-repository \
|
||||||
"deb [arch=amd64] https://download.docker.com/linux/debian \
|
"deb [arch=amd64] https://download.docker.com/linux/debian \
|
||||||
|
Loading…
Reference in New Issue
Block a user