Nginx-Proxy-Manager Docker-Compose

das Netzwerk docker_subnet muss angelegt sein oder an eigene Umgebung angepasst werden, oder die Zeilen Networks entfernen für Default

Docker-Compose

services:
  nginx:
    container_name: Nginx-Proxy-Manager
    hostname: npm
    image: 'jc21/nginx-proxy-manager:latest'
    restart: always
    security_opt:
      - no-new-privileges:true
    environment:
      TZ: Europe/Berlin
    ports:
      - '80:80' # Public HTTP Port
      - '443:443' # Public HTTPS Port
      - '81:81' # Admin Web Port

      # Uncomment this if IPv6 is not enabled on your host
      # DISABLE_IPV6: 'true'
      
    volumes:
      - data:/data
      - cert:/etc/letsencrypt
    networks:
      docker_subnet:
        ipv4_address: 172.18.0.15

networks:
  docker_subnet:
    external: true

volumes:
  data:
  cert: