Advertisement
Guest User

Untitled

a guest
Jul 15th, 2024
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. version: "3"
  2. # Instructions: https://www.wundertech.net/local-ssl-for-home-lab-services-nginx-proxy-manager/
  3. services:
  4. npm:
  5. container_name: npm
  6. image: 'jc21/nginx-proxy-manager:latest'
  7. restart: unless-stopped
  8. ports:
  9. # These ports are in format <host-port>:<container-port>
  10. - '80:80' # Public HTTP Port
  11. - '443:443' # Public HTTPS Port
  12. - '81:81' # Admin Web Port
  13. volumes:
  14. - /volume1/docker/npm/data:/data
  15. - /volume1/docker/npm/letsencrypt:/etc/letsencrypt
  16. networks:
  17. npm_zbridge:
  18. ipv4_address: 192.168.100.10
  19. priority: 900
  20. npm_network:
  21. ipv4_address: 192.168.1.197
  22. priority: 1000
  23. pihole:
  24. container_name: pihole
  25. image: pihole/pihole:latest
  26. ports:
  27. - "53:53/tcp"
  28. - "53:53/udp"
  29. - "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
  30. - "80:80/tcp"
  31. environment:
  32. TZ: 'America/Chicago'
  33. WEBPASSWORD: 'password'
  34. DNSMASQ_LISTENING: local
  35. # Volumes store your data between container upgrades
  36. volumes:
  37. - '/volume1/docker/pihole/pihole:/etc/pihole'
  38. - '/volume1/docker/pihole/dnsmasq.d:/etc/dnsmasq.d'
  39. networks:
  40. npm_network:
  41. ipv4_address: 192.168.1.198
  42. cap_add:
  43. - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
  44. restart: unless-stopped
  45. networks:
  46. npm_zbridge:
  47. name: npm_zbridge
  48. driver: bridge
  49. ipam:
  50. config:
  51. - subnet: 192.168.100.0/24
  52. gateway: 192.168.100.1
  53. ip_range: 192.168.100.0/24
  54. npm_network:
  55. name: npm_network
  56. driver: macvlan
  57. driver_opts:
  58. parent: eth0
  59. ipam:
  60. config:
  61. - subnet: 192.168.1.0/24
  62. ip_range: 192.168.1.0/24
  63. gateway: 192.168.1.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement