Aucune description

docker-compose.dev.yml 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. extends:
  20. file: docker-compose.base.yml
  21. service: rabbitmq
  22. db:
  23. extends:
  24. file: docker-compose.base.yml
  25. service: db
  26. build:
  27. context: docker/db
  28. image: iriswebapp_db:develop
  29. ports:
  30. - "127.0.0.1:5432:5432"
  31. app:
  32. extends:
  33. file: docker-compose.base.yml
  34. service: app
  35. build:
  36. context: .
  37. dockerfile: docker/webApp/Dockerfile
  38. image: iriswebapp_app:develop
  39. ports:
  40. - "8000:8000"
  41. volumes:
  42. - ./source/app:/iriswebapp/app
  43. - ./ui/dist:/iriswebapp/static
  44. healthcheck:
  45. test: curl --head --fail http://localhost:8000 || exit 1
  46. start_period: 60s
  47. worker:
  48. extends:
  49. file: docker-compose.base.yml
  50. service: worker
  51. build:
  52. context: .
  53. dockerfile: docker/webApp/Dockerfile
  54. image: iriswebapp_app:develop
  55. volumes:
  56. - ./source/app:/iriswebapp/app
  57. nginx:
  58. extends:
  59. file: docker-compose.base.yml
  60. service: nginx
  61. build:
  62. context: ./docker/nginx
  63. args:
  64. NGINX_CONF_GID: 1234
  65. NGINX_CONF_FILE: ${NGINX_CONF_FILE:-nginx.conf}
  66. image: iriswebapp_nginx:develop
  67. frontend:
  68. image: node:22-alpine
  69. profiles: ["new-ui"]
  70. container_name: iris_sveltekit_frontend
  71. working_dir: /app
  72. environment:
  73. - IRIS_SVELTEKIT_FRONTEND_DIR=${IRIS_SVELTEKIT_FRONTEND_DIR:-../iris-frontend}
  74. - PUBLIC_EXTERNAL_API_URL=${PUBLIC_EXTERNAL_API_URL:-https://127.0.0.1}
  75. - PUBLIC_INTERNAL_API_URL=http://${IRIS_UPSTREAM_SERVER}:${IRIS_UPSTREAM_PORT}
  76. - PUBLIC_USE_MOCK_API_DATA=false
  77. - ORIGIN=https://127.0.0.1
  78. - PROTOCOL_HEADER=x-forwarded-proto
  79. - HOST_HEADER=x-forwarded-host
  80. - NODE_ENV=development
  81. volumes:
  82. - ${IRIS_SVELTEKIT_FRONTEND_DIR:-../iris-frontend}:/app # Map the frontend directory dynamically
  83. - /app/node_modules # Ensure `node_modules` is preserved inside the container
  84. ports:
  85. - "5173:5173"
  86. command: sh -c "npm install && npm run dev -- --host"
  87. networks:
  88. - iris_backend
  89. - iris_frontend
  90. volumes:
  91. iris-downloads:
  92. user_templates:
  93. server_data:
  94. db_data:
  95. networks:
  96. iris_backend:
  97. name: iris_backend
  98. iris_frontend:
  99. name: iris_frontend