Advertisement
fedorm

Untitled

Sep 15th, 2020
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. version: "3.4"
  2.  
  3. networks:
  4. thrivein-backend:
  5.  
  6. services:
  7. thrivein-backend:
  8. image: registry.gitlab.com/thrivein/thrivein-backend
  9. command: bash -c "python3 manage.py migrate --settings=thrivein.settings.prod && python3 manage.py runserver 0.0.0.0:8000 --settings=thrivein.settings.prod"
  10. networks:
  11. - thrivein-backend
  12. ports:
  13. - "8000:8000"
  14. depends_on:
  15. - psql
  16. volumes:
  17. - ./backend:/project/backend
  18. - ./uploads:/code/uploads
  19.  
  20. celery:
  21. image: registry.gitlab.com/thrivein/thrivein-backend
  22. environment:
  23. - DJANGO_SETTINGS_MODULE=thrivein.settings.prod
  24. command: celery -A thrivein worker -l info
  25. restart: always
  26. networks:
  27. - thrivein-backend
  28.  
  29. flower:
  30. image: registry.gitlab.com/thrivein/thrivein-backend
  31. environment:
  32. - DJANGO_SETTINGS_MODULE=thrivein.settings.prod
  33. command: celery flower -A thrivein --address=0.0.0.0
  34. restart: always
  35. networks:
  36. - thrivein-backend
  37. ports:
  38. - 5555:5555
  39.  
  40. psql:
  41. image: mdillon/postgis:10
  42. environment:
  43. - POSTGRES_DB=thrivein
  44. - PGDATA=/var/lib/postgresql/data
  45. ports:
  46. - 5432:5432
  47. networks:
  48. - thrivein-backend
  49. volumes:
  50. - /data/thrivein/psql-10:/var/lib/postgresql/data
  51.  
  52. chat:
  53. image: chat
  54. command: bash -c "python3 manage.py migrate --settings=thrivein.settings.prod && python3 manage.py run_chat_server --settings=thrivein.settings.prod"
  55. ports:
  56. - "5002:5002"
  57. networks:
  58. - thrivein-backend
  59. depends_on:
  60. - psql
  61. volumes:
  62. - ./backend:/project/backend
  63.  
  64.  
  65. chat_dev:
  66. image: chat_dev
  67. command: bash -c "python3 manage.py migrate --settings=thrivein.settings.dev && python3 manage.py run_chat_server --settings=thrivein.settings.dev"
  68. ports:
  69. - "5003:5003"
  70. networks:
  71. - thrivein-backend
  72. depends_on:
  73. - psql
  74. volumes:
  75. - ./backend:/project/backend
  76.  
  77. backend_dev:
  78. image: registry.gitlab.com/thrivein/thrivein-backend/dev
  79. command: bash -c "python3 manage.py migrate --settings=thrivein.settings.dev && python3 manage.py runserver 0.0.0.0:8001 --settings=thrivein.settings.dev"
  80. ports:
  81. - "8001:8001"
  82. networks:
  83. - thrivein-backend
  84. depends_on:
  85. - psql
  86. volumes:
  87. - ./backend:/project/backend
  88.  
  89. celery-dev:
  90. image: registry.gitlab.com/thrivein/thrivein-backend/dev
  91. environment:
  92. - DJANGO_SETTINGS_MODULE=thrivein.settings.dev
  93. command: celery -A thrivein worker -l info --logfile=/code/some.log
  94. networks:
  95. - thrivein-backend
  96.  
  97. flower-dev:
  98. image: registry.gitlab.com/thrivein/thrivein-backend/dev
  99. environment:
  100. - DJANGO_SETTINGS_MODULE=thrivein.settings.dev
  101. command: celery flower -A thrivein --address=0.0.0.0
  102. networks:
  103. - thrivein-backend
  104. ports:
  105. - 5555:5555
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement