proxy:
    image: nginxproxy/nginx-proxy:1.10.0-alpine
    container_name: nginx-proxy
    restart: always
    ports:
      - 80:80
      - 443:443
    labels:
      com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
    volumes:
      - ./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/nginx/vhost.d
      - ./nginx-proxy/html:/usr/share/nginx/html
      - /var/run/docker.sock:/tmp/docker.sock:ro

  letsencrypt-companion:
    image: jrcs/letsencrypt-nginx-proxy-companion
    container_name: letsencrypt
    volumes:
      - ./nginx-proxy/certs:/etc/nginx/certs
      - ./nginx-proxy/vhost.d:/etc/nginx/vhost.d
      - ./nginx-proxy/html:/usr/share/nginx/html
      - /var/run/docker.sock:/var/run/docker.sock:ro
    depends_on:
      - proxy
    restart: always

  dwz:
    image: registry-vpc.cn-hangzhou.aliyuncs.com/shiningrise/dwz:2.1.0
    container_name: dwz
    privileged: true
    restart: always
    tty: true
    environment:
      - TZ=Asia/Shanghai
      - VIRTUAL_HOST=dwz.wxy.kim
      - VIRTUAL_PORT=5000
      - LETSENCRYPT_HOST=dwz.wxy.kim
      - LETSENCRYPT_EMAIL=shiningrise@qq.com
    volumes:
      - dwz_data_volume:/app/instance
volumes:
  dwz_data_volume:
    name: dwz_data

发表评论