Geen omschrijving

docker-compose.yml.old 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. services:
  2. redis:
  3. restart: unless-stopped
  4. image: redis:7.0.5-alpine
  5. expose:
  6. - 6379
  7. ports:
  8. - "127.0.0.1:6379:6379"
  9. db:
  10. image: postgres
  11. volumes:
  12. - ./data/db:/var/lib/postgresql/data
  13. ports:
  14. - "5432:5432"
  15. environment:
  16. - POSTGRES_DB=postgres
  17. - POSTGRES_USER=postgres
  18. - POSTGRES_PASSWORD=postgres
  19. web:
  20. build: .
  21. command: python -X dev manage.py runserver 0.0.0.0:8000
  22. #entrypoint: ./server-entrypoint.sh
  23. volumes:
  24. - ./app:/code
  25. - ./media:/code/media
  26. ports:
  27. - "127.0.0.1:8020:8000"
  28. environment:
  29. - POSTGRES_NAME=postgres
  30. - POSTGRES_USER=postgres
  31. - POSTGRES_PASSWORD=postgres
  32. - PYTHONMALLOC=debug
  33. - DJANGO_SETTINGS_MODULE=tmt_learning.settings
  34. depends_on:
  35. - db
  36. - redis
  37. - rabbitmq
  38. worker:
  39. restart: unless-stopped
  40. build: .
  41. #command: python -X dev manage.py runserver 0.0.0.0:8000
  42. entrypoint: ./worker-entrypoint.sh
  43. volumes:
  44. - ./app:/code
  45. environment:
  46. - POSTGRES_NAME=postgres
  47. - POSTGRES_USER=postgres
  48. - POSTGRES_PASSWORD=postgres
  49. - PYTHONMALLOC=debug
  50. - DJANGO_SETTINGS_MODULE=tmt_learning.settings
  51. depends_on:
  52. - web
  53. websocket:
  54. build: .
  55. #image: web
  56. command: nodemon authentication.py
  57. volumes:
  58. - ./app:/code
  59. ports:
  60. - "127.0.0.1:8888:8888"
  61. environment:
  62. - POSTGRES_NAME=postgres
  63. - POSTGRES_USER=postgres
  64. - POSTGRES_PASSWORD=postgres
  65. - PYTHONMALLOC=debug
  66. - DJANGO_SETTINGS_MODULE=tmt_learning.settings
  67. depends_on:
  68. - db
  69. - redis
  70. rabbitmq:
  71. image: rabbitmq:3-management-alpine
  72. #container_name: 'rabbitmq'
  73. ports:
  74. - 5672:5672
  75. - 15672:15672
  76. volumes:
  77. - ./rabbitmq/data/:/var/lib/rabbitmq/
  78. - ./rabbitmq/log/:/var/log/rabbitmq
  79. #networks:
  80. #- rabbitmq_go_net