Sign inSign up

rocdk890/openresty

By rocdk890

•Updated 4 months ago

Image
0

1.8K

rocdk890/openresty repository overview

mkdir /data/nginx/logs -p
wget https://download.slogra.com/nginx/etc-conf.tar.gz /data/nginx/
cd /data/nginx/ && tar zxf etc-conf.tar.gz
⁠run:
docker run -itd --name=openresty  \
-v /data/www/vhosts:/data/www/vhosts \
-v /data/nginx:/data/nginx  \
-v /etc/localtime:/etc/localtime:ro  \
--net=host  \
--restart=always  \
rocdk890/openresty:latest
⁠docker-compose:
version: '3'
services:
  openresty:
    image: rocdk890/openresty:latest
    container_name: openresty
    restart: always
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /data/nginx:/data/nginx
      - /data/www/vhosts:/data/www/vhosts  #这项你可以改成你自己的路径,比如/var/lib/nginx/html
    network_mode: host

⁠ps: 本镜像已支持br和zstd压缩,geoip2等比较常用功能,具体可以自行执行docker exec openresty nginx -V 查看有哪些模块.

Tag summary

Content type

Image

Digest

sha256:9923ac631…

Size

50.5 MB

Last updated

5 months ago

docker pull rocdk890/openresty