Nessuna descrizione

docker-compose.yml 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. services:
  2. redis:
  3. restart: unless-stopped
  4. image: redis:7.0.5-alpine
  5. ports:
  6. - "6379"
  7. db:
  8. image: postgres
  9. volumes:
  10. - ./data/db:/var/lib/postgresql/data
  11. ports:
  12. - "5432"
  13. environment:
  14. - POSTGRES_DB=postgres
  15. - POSTGRES_USER=postgres
  16. - POSTGRES_PASSWORD=postgres
  17. mongodb:
  18. image: mongo:6-jammy
  19. ports:
  20. - '27017'
  21. volumes:
  22. - ./mongodb:/data/db
  23. web:
  24. build: .
  25. image: tum/network-report-image
  26. #command: python -X dev manage.py runserver 0.0.0.0:8000
  27. command: python manage.py runserver 0.0.0.0:8000
  28. #command: gunicorn kacee.wsgi:application --bind 0.0.0.0:8000 --workers=4 --timeout 1000
  29. #entrypoint: ./server-entrypoint.sh
  30. volumes:
  31. - ./app:/code
  32. - ./media:/code/media
  33. ports:
  34. - "0.0.0.0:8033:8000"
  35. environment:
  36. - POSTGRES_NAME=postgres
  37. - POSTGRES_USER=postgres
  38. - POSTGRES_PASSWORD=postgres
  39. - PYTHONMALLOC=debug
  40. - DJANGO_SETTINGS_MODULE=network_report.settings
  41. - MODE=${MODE}
  42. depends_on:
  43. - db
  44. - redis
  45. #- rabbitmq
  46. #worker:
  47. #restart: unless-stopped
  48. ##build: .
  49. #image: tum/network-report-image
  50. ##command: python -X dev manage.py runserver 0.0.0.0:8000
  51. #entrypoint: ./worker-entrypoint.sh
  52. #volumes:
  53. #- ./app:/code
  54. #- ./media:/code/media
  55. #environment:
  56. #- POSTGRES_NAME=postgres
  57. #- POSTGRES_USER=postgres
  58. #- POSTGRES_PASSWORD=postgres
  59. #- PYTHONMALLOC=debug
  60. #- DJANGO_SETTINGS_MODULE=kacee.settings
  61. #- MODE=${MODE}
  62. #depends_on:
  63. #- web
  64. #websocket:
  65. ##build: .
  66. #image: tum/network-report-image
  67. #command: nodemon authentication.py
  68. #volumes:
  69. #- ./app:/code
  70. #ports:
  71. #- "127.0.0.1:8888:8888"
  72. #environment:
  73. #- POSTGRES_NAME=postgres
  74. #- POSTGRES_USER=postgres
  75. #- POSTGRES_PASSWORD=postgres
  76. #- PYTHONMALLOC=debug
  77. #- DJANGO_SETTINGS_MODULE=kacee.settings
  78. #- MODE=${MODE}
  79. #depends_on:
  80. #- db
  81. #- redis
  82. #rabbitmq:
  83. #image: rabbitmq:3-management-alpine
  84. #container_name: 'rabbitmq'
  85. #ports:
  86. #- "127.0.0.1:5672:5672"
  87. #- "127.0.0.1:15672:15672"
  88. #volumes:
  89. #- ./rabbitmq/data/:/var/lib/rabbitmq/
  90. #- ./rabbitmq/log/:/var/log/rabbitmq
  91. #networks:
  92. #- rabbitmq_go_net