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

15 lines
586 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
2019-04-03 08:00:02 +00:00
cp ./docker/conf/nginx.conf /home/c2a/conf/nginx/
cp ./docker/conf/mime.types /home/c2a/conf/nginx/
cp ./docker/conf/applications/* /home/c2a/conf/nginx/applications/
2019-04-03 07:42:41 +00:00
docker run --detach \
2019-04-03 08:00:02 +00:00
--name nginx \
2019-04-03 07:42:41 +00:00
--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