Ei kuvausta

docker-compose.yml 2.3KB

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