Bez popisu

docker-compose.base.yml 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. # IRIS Source Code
  2. # contact@dfir-iris.org
  3. #
  4. # This program is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU Lesser General Public
  6. # License as published by the Free Software Foundation; either
  7. # version 3 of the License, or (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. # Lesser General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU Lesser General Public License
  15. # along with this program; if not, write to the Free Software Foundation,
  16. # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17. services:
  18. rabbitmq:
  19. image: rabbitmq:3-management-alpine
  20. container_name: iriswebapp_rabbitmq
  21. restart: always
  22. environment:
  23. - TZ=Asia/Bangkok
  24. networks:
  25. - iris_backend
  26. db:
  27. container_name: iriswebapp_db
  28. restart: always
  29. environment:
  30. - TZ=Asia/Bangkok
  31. - POSTGRES_USER
  32. - POSTGRES_PASSWORD
  33. - POSTGRES_ADMIN_USER
  34. - POSTGRES_ADMIN_PASSWORD
  35. - POSTGRES_DB
  36. networks:
  37. - iris_backend
  38. volumes:
  39. - db_data:/var/lib/postgresql/data
  40. app:
  41. container_name: iriswebapp_app
  42. command: ["nohup", "./iris-entrypoint.sh", "iriswebapp"]
  43. volumes:
  44. - ./certificates/rootCA/irisRootCACert.pem:/etc/irisRootCACert.pem:ro
  45. - ./certificates/:/home/iris/certificates/:ro
  46. - ./certificates/ldap/:/iriswebapp/certificates/ldap/:ro
  47. - iris-downloads:/home/iris/downloads
  48. - user_templates:/home/iris/user_templates
  49. - server_data:/home/iris/server_data
  50. restart: always
  51. depends_on:
  52. - "rabbitmq"
  53. - "db"
  54. env_file:
  55. - .env
  56. environment:
  57. - TZ=Asia/Bangkok
  58. - LOG_LEVEL
  59. - POSTGRES_USER
  60. - POSTGRES_PASSWORD
  61. - POSTGRES_ADMIN_USER
  62. - POSTGRES_ADMIN_PASSWORD
  63. - POSTGRES_SERVER
  64. - POSTGRES_PORT
  65. - IRIS_SECRET_KEY
  66. - IRIS_SECURITY_PASSWORD_SALT
  67. networks:
  68. - iris_backend
  69. - iris_frontend
  70. worker:
  71. container_name: iriswebapp_worker
  72. restart: always
  73. command:
  74. [
  75. "./wait-for-iriswebapp.sh",
  76. "app:8000",
  77. "./iris-entrypoint.sh",
  78. "iris-worker",
  79. ]
  80. volumes:
  81. - ./certificates/rootCA/irisRootCACert.pem:/etc/irisRootCACert.pem:ro
  82. - ./certificates/:/home/iris/certificates/:ro
  83. - ./certificates/ldap/:/iriswebapp/certificates/ldap/:ro
  84. - iris-downloads:/home/iris/downloads
  85. - user_templates:/home/iris/user_templates
  86. - server_data:/home/iris/server_data
  87. depends_on:
  88. - "rabbitmq"
  89. - "db"
  90. - "app"
  91. env_file:
  92. - .env
  93. environment:
  94. - TZ=Asia/Bangkok
  95. - POSTGRES_USER
  96. - POSTGRES_PASSWORD
  97. - POSTGRES_ADMIN_USER
  98. - POSTGRES_ADMIN_PASSWORD
  99. - POSTGRES_SERVER
  100. - POSTGRES_PORT
  101. - IRIS_SECRET_KEY
  102. - IRIS_SECURITY_PASSWORD_SALT
  103. - IRIS_WORKER
  104. - LOG_LEVEL
  105. networks:
  106. - iris_backend
  107. nginx:
  108. container_name: iriswebapp_nginx
  109. environment:
  110. - TZ=Asia/Bangkok
  111. - IRIS_UPSTREAM_SERVER
  112. - IRIS_UPSTREAM_PORT
  113. - IRIS_FRONTEND_SERVER
  114. - IRIS_FRONTEND_PORT
  115. - INTERFACE_HTTPS_PORT
  116. - SERVER_NAME
  117. - CERT_FILENAME
  118. - KEY_FILENAME
  119. - IRIS_AUTHENTICATION_TYPE
  120. networks:
  121. - iris_frontend
  122. ports:
  123. - "${INTERFACE_HTTPS_PORT:-443}:${INTERFACE_HTTPS_PORT:-443}"
  124. volumes:
  125. - "./certificates/web_certificates/:/www/certs/:ro"
  126. restart: always
  127. depends_on:
  128. - "app"
  129. volumes:
  130. iris-downloads:
  131. user_templates:
  132. server_data:
  133. db_data:
  134. networks:
  135. iris_backend:
  136. name: iris_backend
  137. iris_frontend:
  138. name: iris_frontend