Nginx Proxy Manager

docker network create --driver bridge --subnet 172.19.0.0/16 --gateway 172.19.0.1 npmbridge
version: "3"
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      # These ports are in format <host-port>:<container-port>
      - '80:80' # Public HTTP Port
      - '443:443' # Public HTTPS Port
      - '81:81' # Admin Web Port
      # Add any other Stream port you want to expose
      # - '21:21' # FTP
    networks:
      npmbridge:
        ipv4_address: "172.19.0.251"
    environment:
      DISABLE_IPV6: 'true'
    volumes:
      - ${PWD}/data:/data
      - ${PWD}/letsencrypt:/etc/letsencrypt
networks:
  npmbridge:
    external: true
version: "3"
services:
  app:
    image: 'portainer/portainer-ce:2.9.2-alpine'
    restart: unless-stopped
    networks:
      npmbridge:
        ipv4_address: "172.19.0.250"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ${PWD}/data:/data
networks:
  npmbridge:
    external: true

posted @ 2022-02-06 11:07  月渊  阅读(541)  评论(0)    收藏  举报