Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --
- version: '3.7'
- services:
- proxy:
- image: 'jc21/nginx-proxy-manager:latest'
- container_name: npm-latest
- restart: unless-stopped
- networks:
- macvlan:
- ipv4_address: 192.168.1.254 # Set an unused IP within your subnet
- dns:
- - 192.168.1.253 # Set to your macvlan shim IP if DNS is hosted on your NAS
- ports:
- - '81:81' # Admin Web Port
- - '8080:80' # Public HTTP Port (mapped to avoid DSM conflict)
- - '8443:443' # Public HTTPS Port (mapped to avoid DSM conflict)
- environment:
- DB_SQLITE_FILE: "/data/database.sqlite"
- DISABLE_IPV6: 'true'
- volumes:
- - /volume1/docker/npm/data:/data # Adjusted volume mapping for data
- - /volume1/docker/npm/letsencrypt:/etc/letsencrypt # Adjusted volume mapping for Let's Encrypt
- networks:
- macvlan:
- driver: macvlan
- driver_opts:
- parent: eth0 # Use your specified LAN interface
- ipam:
- config:
- - subnet: 192.168.1.0/24 # Your LAN subnet
- ip_range: 192.168.1.252/30 # Adjust as needed for your setup
- gateway: 192.168.1.1
- aux_addresses:
- host: 192.168.1.253 # Reserve the host IP for DNS resolution
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement