docker-compose.yml 2.1 KB

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