▼命令如下所示,端口可修改 version: '3' services: nginx-proxy-manage: container_name: nginx-proxy-manager image: jc21/nginx-proxy-manager:latest ports: - '8188:80' - '8189:81' - '8190:443' volumes: - "/share/Container/ngx/data:/data" # 冒号左边可改路径 - "/share/Container/ngx/let...
nginx-proxy配置 nginx-proxy: image: jwilder/nginx-proxy container_name: nginx-proxy restart: always ports:-80:80-443:443volumes:- ./nginx-proxy/certs:/etc/nginx/certs:ro- ./nginx-proxy/config/nginx/conf.d:/etc/nginx/conf.d- ./nginx-proxy/acme:/acmecerts- ./nginx-proxy/vhost.d:/etc...
docker network create nginx-proxy 然后分别将 Nginx Proxy Manager 和其他服务放到同一个网络下,添加如下配置: networks: default: external: name: nginx-proxy 以Portainer 举例: version: '3' services: portainer: image: portainer/portainer privileged: true volumes: - './data:/data' - '/var/run/dock...
version: '3.3'services: coreapi: environment: VIRTUAL_HOST: coreapi.com VIRTUAL_PORT: 5000 sw-ui: environment: VIRTUAL_HOST: s.coreapi.com VIRTUAL_PORT: 8080 portainer: environment: VIRTUAL_HOST: d.coreapi.com VIRTUAL_PORT: 9000 nginx-proxy: container_name: nginx-proxy image: jwilder/nginx...
https://hub.docker.com/r/jwilder/nginx-proxy/ 用法 1. 确保80端口没有被占用。 2. 将下面代码制作成docker-compose.yml。 version:'2'services: nginx-proxy: image: jwilder/nginx-proxy container_name: nginx-proxy ports:-"80:80"volumes:- /var/run/docker.sock:/tmp/docker.sock:ro ...
docker run --privileged=true -e VIRTUAL_HOST=test02.lys.com -e VIRTUAL_PORT=6080 -d 6b30f6a0558b 1. 2. 3. 配置host C:\Windows\System32\drivers\etc\hosts 10.6.8.247 test.lys.com 1. 效果可视化的容器 参考 https://hub.docker.com/r/jwilder/nginx-proxy/...
version: '3.8' services: app: image: 'jc21/nginx-proxy-manager:latest' restart: unless-stopped ports: - '80:80' - '81:81' - '443:443' volumes: - ./data:/data - ./letsencrypt:/etc/letsencrypt 4.运行项目(第一次运行需要下载项目的images文件,可能耗时稍久) docker-compose up -d 5....
docker-gen为nginx生成反向代理配置,并在容器启动和停止时重新加载nginx。 用法 运行: $ docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy 然后启动任何要使用env var代理的容器 VIRTUAL_HOST=subdomain.youdomain.com $ docker run -e VIRTUAL_HOST=foo.bar.com...
运行Nginx Proxy Manager 代码语言:javascript 复制 docker-compose up-d 理论上我们就可以输入 http://ip:81 访问了。 默认登陆名和密码: Email: admin@example.com Password: changeme 3.其他事项 3.1更新 Nginx Proxy Manager 代码语言:javascript 复制 ...
不用nginx-proxy-manager,用群辉的反代功能,calibre-web就没这个鬼问题,晚点群辉申请let's encrypt的泛域名证书方便的话,可以直接用群辉反代了,也是图形化管理,看着也挺方便。用nginx-proxy-manager是看中了图形化界面配置和可自动续期证书,持续观察一下。