collection.dockerfile/alpine/nginx/start-nginx.sh

15 lines
640 B
Bash
Raw Normal View History

2022-01-17 15:56:05 +08:00
# nginx container
docker run --name nginx -v /my/container-config/alpine/nginx/nginx.conf:/etc/nginx/nginx.conf:ro \
2022-10-12 12:27:12 +08:00
-m 2g -v /my/sites/ssl-cert:/home/ssl \
2022-01-17 15:56:05 +08:00
-v /var/www/nextcloud:/var/www/nextcloud:ro \
-v /var/www/enpass:/var/www/enpass:rw \
2022-10-12 12:27:12 +08:00
-v /var/www/letsencrypt:/var/www/letsencrypt:ro \
2022-01-17 15:56:05 +08:00
--net macvlan --ip 192.168.86.209 -d --restart=always alpine/nginx
# clearlinux/nginx
#docker run --name nginx -v /my/container-config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro \
#-v /etc/letsencrypt:/etc/letsencrypt:ro -m 2g \
#-v /var/www/nextcloud:/var/www/nextcloud:ro \
#--net macvlan --ip 192.168.86.3 -d --restart=always clearlinux/nginx