C2A-Installation-Server/docker/install-nginx.sh
2019-04-03 16:42:41 +09:00

15 lines
560 B
Bash

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