Advertisement
Guest User

Untitled

a guest
Jan 9th, 2025
102
0
209 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. --
  2. version: '3.7'
  3. services:
  4. proxy:
  5. image: 'jc21/nginx-proxy-manager:latest'
  6. container_name: npm-latest
  7. restart: unless-stopped
  8. networks:
  9. macvlan:
  10. ipv4_address: 192.168.1.254 # Set an unused IP within your subnet
  11. dns:
  12. - 192.168.1.253 # Set to your macvlan shim IP if DNS is hosted on your NAS
  13. ports:
  14. - '81:81' # Admin Web Port
  15. - '8080:80' # Public HTTP Port (mapped to avoid DSM conflict)
  16. - '8443:443' # Public HTTPS Port (mapped to avoid DSM conflict)
  17. environment:
  18. DB_SQLITE_FILE: "/data/database.sqlite"
  19. DISABLE_IPV6: 'true'
  20. volumes:
  21. - /volume1/docker/npm/data:/data # Adjusted volume mapping for data
  22. - /volume1/docker/npm/letsencrypt:/etc/letsencrypt # Adjusted volume mapping for Let's Encrypt
  23.  
  24. networks:
  25. macvlan:
  26. driver: macvlan
  27. driver_opts:
  28. parent: eth0 # Use your specified LAN interface
  29. ipam:
  30. config:
  31. - subnet: 192.168.1.0/24 # Your LAN subnet
  32. ip_range: 192.168.1.252/30 # Adjust as needed for your setup
  33. gateway: 192.168.1.1
  34. aux_addresses:
  35. host: 192.168.1.253 # Reserve the host IP for DNS resolution
  36.  
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement