No Description

docker-compose.yml 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. web:
  20. build: .
  21. image: tum/network-report-image
  22. #command: python -X dev manage.py runserver 0.0.0.0:8000
  23. command: python manage.py runserver 0.0.0.0:8000
  24. #command: gunicorn kacee.wsgi:application --bind 0.0.0.0:8000 --workers=4 --timeout 1000
  25. #entrypoint: ./server-entrypoint.sh
  26. volumes:
  27. - ./app:/code
  28. - ./media:/code/media
  29. ports:
  30. - "127.0.0.1:8033:8000"
  31. environment:
  32. - POSTGRES_NAME=postgres
  33. - POSTGRES_USER=postgres
  34. - POSTGRES_PASSWORD=postgres
  35. - PYTHONMALLOC=debug
  36. - DJANGO_SETTINGS_MODULE=network_report.settings
  37. - MODE=${MODE}
  38. depends_on:
  39. - db
  40. - redis
  41. #- rabbitmq
  42. #worker:
  43. #restart: unless-stopped
  44. ##build: .
  45. #image: tum/network-report-image
  46. ##command: python -X dev manage.py runserver 0.0.0.0:8000
  47. #entrypoint: ./worker-entrypoint.sh
  48. #volumes:
  49. #- ./app:/code
  50. #- ./media:/code/media
  51. #environment:
  52. #- POSTGRES_NAME=postgres
  53. #- POSTGRES_USER=postgres
  54. #- POSTGRES_PASSWORD=postgres
  55. #- PYTHONMALLOC=debug
  56. #- DJANGO_SETTINGS_MODULE=kacee.settings
  57. #- MODE=${MODE}
  58. #depends_on:
  59. #- web
  60. #websocket:
  61. ##build: .
  62. #image: tum/network-report-image
  63. #command: nodemon authentication.py
  64. #volumes:
  65. #- ./app:/code
  66. #ports:
  67. #- "127.0.0.1:8888:8888"
  68. #environment:
  69. #- POSTGRES_NAME=postgres
  70. #- POSTGRES_USER=postgres
  71. #- POSTGRES_PASSWORD=postgres
  72. #- PYTHONMALLOC=debug
  73. #- DJANGO_SETTINGS_MODULE=kacee.settings
  74. #- MODE=${MODE}
  75. #depends_on:
  76. #- db
  77. #- redis
  78. #rabbitmq:
  79. #image: rabbitmq:3-management-alpine
  80. #container_name: 'rabbitmq'
  81. #ports:
  82. #- "127.0.0.1:5672:5672"
  83. #- "127.0.0.1:15672:15672"
  84. #volumes:
  85. #- ./rabbitmq/data/:/var/lib/rabbitmq/
  86. #- ./rabbitmq/log/:/var/log/rabbitmq
  87. #networks:
  88. #- rabbitmq_go_net