Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

169 rindas
3.5KB

  1. services:
  2. openldap:
  3. build:
  4. context: ./images/openldap/
  5. image: bingen/${ARCH}-openldap:latest
  6. tty: true
  7. stdin_open: true
  8. env_file:
  9. - openldap.env
  10. networks:
  11. - default
  12. #ports:
  13. #- "389:389"
  14. #- "639:639"
  15. #- "8080:80"
  16. volumes:
  17. - ${LDAP_DATA_VOLUME_PATH}:/var/lib/ldap
  18. - ${LDAP_CONFIG_VOLUME_PATH}:/etc/ldap/slapd.d
  19. - ${LDAP_CERTS_VOLUME_PATH}:/container/service/slapd/assets/certs/
  20. hostname: openldap.${DOMAIN}
  21. db:
  22. image: mariadb:10.3.39
  23. env_file:
  24. - mariadb.env
  25. networks:
  26. - default
  27. #ports:
  28. #- "3306:3306"
  29. volumes:
  30. - ${DB_DATA_VOLUME_PATH}:/var/lib/mysql
  31. haproxy:
  32. build:
  33. context: ./images/haproxy/
  34. image: bingen/${ARCH}-haproxy:latest
  35. depends_on:
  36. # For DNS resolution
  37. - nextcloud
  38. - gitea
  39. - pihole
  40. env_file:
  41. - haproxy.env
  42. networks:
  43. - default
  44. ports:
  45. - "80:80"
  46. - "443:443"
  47. volumes:
  48. - ${LETSENCRYPT_VOLUME_PATH}:/etc/letsencrypt
  49. mail:
  50. build:
  51. context: ./images/email/
  52. image: bingen/${ARCH}-mailserver:latest
  53. depends_on:
  54. - openldap
  55. hostname: ${MAIL_HOSTNAME}.${DOMAIN}
  56. env_file:
  57. - mail.env
  58. networks:
  59. - default
  60. ports:
  61. - "25:25"
  62. - "143:143"
  63. - "587:587"
  64. - "993:993"
  65. volumes:
  66. - ${MAIL_DATA_VOLUME_PATH}:${MAIL_DATA_PATH}
  67. #- ${MAIL_STATE_VOLUME_PATH}:${MAIL_STATE_PATH}
  68. cap_add:
  69. - NET_ADMIN
  70. nextcloud:
  71. build:
  72. context: ./images/nextcloud/
  73. args:
  74. - NEXTCLOUD_VERSION=${NEXTCLOUD_VERSION}
  75. - NEXTCLOUD_DATA_PATH=${NEXTCLOUD_DATA_PATH}
  76. - NEXTCLOUD_BACKUP_PATH=${NEXTCLOUD_BACKUP_PATH}
  77. image: bingen/${ARCH}-nextcloud:latest
  78. depends_on:
  79. - db
  80. - openldap
  81. #- haproxy
  82. env_file:
  83. - nextcloud.env
  84. networks:
  85. - default
  86. ports:
  87. - "8000:80"
  88. - "8443:443"
  89. volumes:
  90. - ${NEXTCLOUD_DATA_VOLUME_PATH}:${NEXTCLOUD_DATA_PATH}
  91. - ${NEXTCLOUD_BACKUP_VOLUME_PATH}:${NEXTCLOUD_BACKUP_PATH}
  92. sftp:
  93. build:
  94. context: ./images/sftp/
  95. image: bingen/${ARCH}-sftp
  96. ports:
  97. - "1022:22"
  98. volumes:
  99. - ${PAPERLESS_CONSUMPTION_VOLUME_PATH}:${PAPERLESS_CONSUMPTION_PATH}
  100. env_file:
  101. - sftp.env
  102. gitea:
  103. build:
  104. context: ./images/gitea/
  105. image: bingen/${ARCH}-gitea
  106. depends_on:
  107. - openldap
  108. env_file:
  109. - gitea.env
  110. ports:
  111. - "2080:3000"
  112. - "${GITEA_HTTP_PORT}:${GITEA_HTTP_PORT}"
  113. - "2022:22"
  114. volumes:
  115. - ${GITEA_DATA_VOLUME_PATH}:/data
  116. blog1:
  117. image: ghost
  118. restart: always
  119. # ports:
  120. # - "2368:2368"
  121. environment:
  122. database__client: sqlite3
  123. database__connection__filename: content/data/ghost.db
  124. url: ${BLOG_1_URL}
  125. volumes:
  126. - ${BLOG_1_VOLUME_PATH}:/var/lib/ghost/content
  127. hauk:
  128. build:
  129. context: ./images/hauk/
  130. image: bingen/${ARCH}-hauk
  131. depends_on:
  132. - openldap
  133. env_file:
  134. - hauk.env
  135. ports:
  136. - "4080:80"
  137. pihole:
  138. image: pihole/pihole:latest
  139. env_file:
  140. - pihole.env
  141. # cap_add: # for DHCP
  142. # - NET_ADMIN
  143. environment:
  144. FTLCONF_dns_listeningMode: 'all'
  145. ports:
  146. #- "2053:53/tcp"
  147. #- "2053:53/udp"
  148. - "53:53/tcp"
  149. - "53:53/udp"
  150. # - "67:67/udp" # for DHCP
  151. - "8314:80"
  152. - "3443:443"
  153. volumes:
  154. - ${PIHOLE_CONFIG_VOLUME_PATH}:/etc/pihole/
  155. - ${PIHOLE_DNSMASQ_VOLUME_PATH}:/etc/dnsmasq.d/
  156. restart: always
  157. networks:
  158. default:
  159. driver: bridge