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

docker-compose.yml 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 "npm run watch &&
  23. python manage.py migrate &&
  24. python manage.py runserver 0.0.0.0:8000"
  25. #entrypoint: ./server-entrypoint.sh
  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. websocket:
  42. build: .
  43. #image: web
  44. command: nodemon authentication.py
  45. volumes:
  46. - ./app:/code
  47. ports:
  48. - "127.0.0.1:8888:8888"
  49. environment:
  50. - POSTGRES_NAME=postgres
  51. - POSTGRES_USER=postgres
  52. - POSTGRES_PASSWORD=postgres
  53. - PYTHONMALLOC=debug
  54. - DJANGO_SETTINGS_MODULE=tmt_learning.settings
  55. depends_on:
  56. - db
  57. - redis