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

docker-compose.yml 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. websocket:
  39. build: .
  40. #image: web
  41. command: nodemon authentication.py
  42. volumes:
  43. - ./app:/code
  44. ports:
  45. - "127.0.0.1:8888:8888"
  46. environment:
  47. - POSTGRES_NAME=postgres
  48. - POSTGRES_USER=postgres
  49. - POSTGRES_PASSWORD=postgres
  50. - PYTHONMALLOC=debug
  51. - DJANGO_SETTINGS_MODULE=tmt_learning.settings
  52. depends_on:
  53. - db
  54. - redis