Brak opisu

docker-compose.base.yml 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. networks:
  23. - iris_backend
  24. db:
  25. container_name: iriswebapp_db
  26. restart: always
  27. environment:
  28. - POSTGRES_USER
  29. - POSTGRES_PASSWORD
  30. - POSTGRES_ADMIN_USER
  31. - POSTGRES_ADMIN_PASSWORD
  32. - POSTGRES_DB
  33. networks:
  34. - iris_backend
  35. volumes:
  36. - db_data:/var/lib/postgresql/data
  37. app:
  38. container_name: iriswebapp_app
  39. command: ["nohup", "./iris-entrypoint.sh", "iriswebapp"]
  40. volumes:
  41. - ./certificates/rootCA/irisRootCACert.pem:/etc/irisRootCACert.pem:ro
  42. - ./certificates/:/home/iris/certificates/:ro
  43. - ./certificates/ldap/:/iriswebapp/certificates/ldap/:ro
  44. - iris-downloads:/home/iris/downloads
  45. - user_templates:/home/iris/user_templates
  46. - server_data:/home/iris/server_data
  47. restart: always
  48. depends_on:
  49. - "rabbitmq"
  50. - "db"
  51. env_file:
  52. - .env
  53. environment:
  54. - LOG_LEVEL
  55. - POSTGRES_USER
  56. - POSTGRES_PASSWORD
  57. - POSTGRES_ADMIN_USER
  58. - POSTGRES_ADMIN_PASSWORD
  59. - POSTGRES_SERVER
  60. - POSTGRES_PORT
  61. - IRIS_SECRET_KEY
  62. - IRIS_SECURITY_PASSWORD_SALT
  63. networks:
  64. - iris_backend
  65. - iris_frontend
  66. worker:
  67. container_name: iriswebapp_worker
  68. restart: always
  69. command:
  70. [
  71. "./wait-for-iriswebapp.sh",
  72. "app:8000",
  73. "./iris-entrypoint.sh",
  74. "iris-worker",
  75. ]
  76. volumes:
  77. - ./certificates/rootCA/irisRootCACert.pem:/etc/irisRootCACert.pem:ro
  78. - ./certificates/:/home/iris/certificates/:ro
  79. - ./certificates/ldap/:/iriswebapp/certificates/ldap/:ro
  80. - iris-downloads:/home/iris/downloads
  81. - user_templates:/home/iris/user_templates
  82. - server_data:/home/iris/server_data
  83. depends_on:
  84. - "rabbitmq"
  85. - "db"
  86. - "app"
  87. env_file:
  88. - .env
  89. environment:
  90. - POSTGRES_USER
  91. - POSTGRES_PASSWORD
  92. - POSTGRES_ADMIN_USER
  93. - POSTGRES_ADMIN_PASSWORD
  94. - POSTGRES_SERVER
  95. - POSTGRES_PORT
  96. - IRIS_SECRET_KEY
  97. - IRIS_SECURITY_PASSWORD_SALT
  98. - IRIS_WORKER
  99. - LOG_LEVEL
  100. networks:
  101. - iris_backend
  102. nginx:
  103. container_name: iriswebapp_nginx
  104. environment:
  105. - IRIS_UPSTREAM_SERVER
  106. - IRIS_UPSTREAM_PORT
  107. - IRIS_FRONTEND_SERVER
  108. - IRIS_FRONTEND_PORT
  109. - INTERFACE_HTTPS_PORT
  110. - SERVER_NAME
  111. - CERT_FILENAME
  112. - KEY_FILENAME
  113. - IRIS_AUTHENTICATION_TYPE
  114. networks:
  115. - iris_frontend
  116. ports:
  117. - "${INTERFACE_HTTPS_PORT:-443}:${INTERFACE_HTTPS_PORT:-443}"
  118. volumes:
  119. - "./certificates/web_certificates/:/www/certs/:ro"
  120. restart: always
  121. depends_on:
  122. - "app"
  123. volumes:
  124. iris-downloads:
  125. user_templates:
  126. server_data:
  127. db_data:
  128. networks:
  129. iris_backend:
  130. name: iris_backend
  131. iris_frontend:
  132. name: iris_frontend