Ei kuvausta

docker-compose.yml 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. services:
  2. redis:
  3. restart: unless-stopped
  4. image: redis:7.0.5-alpine
  5. ports:
  6. - "127.0.0.1:6379:6379"
  7. db:
  8. image: postgres:15.5-alpine3.19
  9. volumes:
  10. - ./data/db:/var/lib/postgresql/data
  11. ports:
  12. - "127.0.0.1:5432: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. - '127.0.0.1:27017:27017'
  21. volumes:
  22. - ./mongodb:/data/db
  23. web:
  24. build: .
  25. image: tum/network-report-image
  26. restart: unless-stopped
  27. #command: python -X dev manage.py runserver 0.0.0.0:8000
  28. command: python manage.py runserver 0.0.0.0:8000
  29. #command: gunicorn kacee.wsgi:application --bind 0.0.0.0:8000 --workers=4 --timeout 1000
  30. #entrypoint: ./server-entrypoint.sh
  31. volumes:
  32. - ./app:/code
  33. - ./media:/code/media
  34. ports:
  35. - "0.0.0.0:8033:8000"
  36. environment:
  37. - POSTGRES_NAME=postgres
  38. - POSTGRES_USER=postgres
  39. - POSTGRES_PASSWORD=postgres
  40. - PYTHONMALLOC=debug
  41. - DJANGO_SETTINGS_MODULE=network_report.settings
  42. - MODE=${MODE}
  43. depends_on:
  44. - db
  45. - redis
  46. #- rabbitmq
  47. worker:
  48. restart: unless-stopped
  49. #build: .
  50. image: tum/network-report-image
  51. #command: python -X dev manage.py runserver 0.0.0.0:8000
  52. entrypoint: ./worker-entrypoint.sh
  53. volumes:
  54. - ./app:/code
  55. - ./media:/code/media
  56. environment:
  57. - POSTGRES_NAME=postgres
  58. - POSTGRES_USER=postgres
  59. - POSTGRES_PASSWORD=postgres
  60. - PYTHONMALLOC=debug
  61. - DJANGO_SETTINGS_MODULE=network_report.settings
  62. - MODE=${MODE}
  63. depends_on:
  64. - web
  65. - rabbitmq
  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: 'rabbitmq3'
  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