Няма описание

docker-compose.yml 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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: >
  22. sh -c "python manage.py migrate &&
  23. python manage.py runserver 0.0.0.0:8000"
  24. #entrypoint: ./server-entrypoint.sh
  25. tty: true
  26. volumes:
  27. - ./app:/code
  28. - ./media:/code/media
  29. ports:
  30. - "127.0.0.1:8020:8000"
  31. environment:
  32. - POSTGRES_NAME=postgres
  33. - POSTGRES_USER=postgres
  34. - POSTGRES_PASSWORD=postgres
  35. - PYTHONMALLOC=debug
  36. - DJANGO_SETTINGS_MODULE=tmt_learning.settings
  37. depends_on:
  38. - db
  39. - redis
  40. #- rabbitmq
  41. tailwind:
  42. build: .
  43. #image: web
  44. command: npm run watch
  45. tty: true
  46. volumes:
  47. - ./app:/code
  48. websocket:
  49. build: .
  50. #image: web
  51. command: nodemon authentication.py
  52. volumes:
  53. - ./app:/code
  54. ports:
  55. - "127.0.0.1:8888:8888"
  56. environment:
  57. - POSTGRES_NAME=postgres
  58. - POSTGRES_USER=postgres
  59. - POSTGRES_PASSWORD=postgres
  60. - PYTHONMALLOC=debug
  61. - DJANGO_SETTINGS_MODULE=tmt_learning.settings
  62. depends_on:
  63. - db
  64. - redis