C2A-Installation-Server/docker/install-nginx.sh

15 lines
560 B
Bash
Raw Normal View History

2019-04-03 07:42:41 +00:00
mkdir /home/c2a/conf
mkdir /home/c2a/conf/nginx
mkdir /home/c2a/conf/nginx/applications
cp conf/nginx.conf /home/c2a/conf/nginx/
cp conf/mime.types /home/c2a/conf/nginx/
cp conf/applications/* /home/c2a/conf/nginx/applications/
docker run --detach \
--name gitlab \
--publish 80:80 \
--publish 443:443 \
--volume /home/c2a/conf/nginx/nginx.conf:/etc/nginx/nginx.conf \
--volume /home/c2a/conf/nginx/mime.types:/etc/nginx/mime.types \
--volume /home/c2a/conf/nginx/applications:/etc/nginx/conf.d \
--restart unless-stopped \
nginx:latest