docker-compose.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. version: "3.9"
  2. volumes:
  3. pihole_config_etc:
  4. pihole_config_dnsmasq:
  5. heimdall_config:
  6. git_data:
  7. nextcloud_data:
  8. driver_opts:
  9. type: nfs
  10. o: addr=10.10.20.254,rw,hard,user=nobody
  11. device: :/mnt/documents/files/cloud/
  12. postgres_data:
  13. services:
  14. heimdall:
  15. environment:
  16. - PGID=1000
  17. - PUID=1000
  18. image: ghcr.io/linuxserver/heimdall
  19. ports:
  20. - "10.10.20.254:80:80/tcp"
  21. restart: unless-stopped
  22. volumes:
  23. - heimdall_config:/config:rw
  24. - /etc/timezone:/etc/timezone:ro
  25. - /etc/localtime:/etc/localtime:ro
  26. pihole:
  27. dns:
  28. - 202.142.142.142
  29. - 202.142.142.242
  30. environment:
  31. - PUID=1000
  32. - CONDITIONAL_FORWARDING_IP=10.10.20.1
  33. - CONDITIONAL_FORWARDING_DOMAIN=playne.id.au
  34. - DNS2=202.142.142.242
  35. - ServerIP=10.10.20.253
  36. - CONDITIONAL_FORWARDING=True
  37. - DNS1=202.142.142.142
  38. - PGID=1000
  39. - DNS_IPv6=2403:5800:c100:7802::feed
  40. - DNS_IP=10.10.20.253
  41. - IPv6=True
  42. image: pihole/pihole:latest
  43. ports:
  44. - "10.10.20.253:443:443/tcp"
  45. - "10.10.20.253:53:53/tcp"
  46. - "10.10.20.253:53:53/udp"
  47. - "10.10.20.253:80:80/tcp"
  48. restart: unless-stopped
  49. volumes:
  50. - /etc/timezone:/etc/timezone:ro
  51. - /etc/localtime:/etc/localtime:ro
  52. - pihole_config_etc:/etc/pihole:rw
  53. - pihole_config_dnsmasq:/etc/dnsmasq.d:rw
  54. git:
  55. image: gogs/gogs
  56. ports:
  57. - "10022:22"
  58. - "3000:3000"
  59. volumes:
  60. - git_data:/data
  61. nextcloud:
  62. image: nextcloud
  63. restart: unless-stopped
  64. ports:
  65. - "10.10.20.252:80:80/tcp"
  66. volumes:
  67. - nextcloud_data:/var/www/html
  68. environment:
  69. - POSTGRES_DB=nextcloud
  70. - POSTGRES_USER=nextcloud
  71. - POSTGRES_PASSWORD=nextcloud
  72. - POSTGRES_HOST=postgres
  73. depends_on:
  74. - postgres
  75. postgres:
  76. image: postgres:14
  77. ports:
  78. - "5432"
  79. volumes:
  80. - postgres_data:/var/lib/postgresql/data
  81. environment:
  82. - POSTGRES_PASSWORD=nextcloud
  83. - POSTGRES_USER=nextcloud
  84. - POSTGRES_DB=nextcloud