💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
``` -- 1. 启动一个默认实例 docker run --name nginx -d nginx -- 2. 把文件拷出来 cd /data/docker/nginx docker cp nginx:/etc/nginx/nginx.conf . docker cp nginx:/etc/nginx/conf.d/default.conf . docker cp nginx:/usr/share/nginx/html/* . docker cp nginx:/usr/share/nginx/html/50x.html . docker cp nginx:/usr/share/nginx/html/index.html . -- 3. 删除默认实例 docker stop nginx && docker rm nginx -- 4. 启动新实例 docker run --name nginx -p 81:80 \ -v /data/docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro \ -v /data/docker/nginx/html:/usr/share/nginx/html \ -v /data/docker/nginx/conf.d:/etc/nginx/conf.d \ -d nginx version: '3.0' services: nginx: restart: always image: nginx:1.16.6-alpine ports: - 8080:8080 - 80:80 - 443:443 volumes: - /home/service/nginx/conf.d:/etc/nginx/conf.d - /home/service/nginx/log:/var/log/nginx - /home/service/nginx/static:/usr/share/nginx/html - /etc/letsencrypt:/etc/letsencrypt ```