Advertisement
Falexom

Untitled

Apr 15th, 2022
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. version: '3.8'
  2.  
  3. services:
  4. db:
  5. image: postgres
  6. volumes:
  7. - ./data/db:/var/lib/postgresql/data
  8. env_file:
  9. - "keyguard/.env"
  10. ports:
  11. - "5432:5432"
  12.  
  13. app:
  14. build: .
  15. command: python manage.py runserver 0.0.0.0:8000
  16. volumes:
  17. - .:/code
  18. ports:
  19. - "8000:8000"
  20. env_file:
  21. - "keyguard/.env"
  22. depends_on:
  23. - db
  24.  
  25. redis:
  26. image: "redis:alpine"
  27. env_file:
  28. - "keyguard/.env"
  29.  
  30. celery:
  31. restart: always
  32. build: .
  33. command: celery -A keyguard worker -l info
  34. volumes:
  35. - .:/code
  36. depends_on:
  37. - redis
  38. env_file:
  39. - "keyguard/.env"
  40.  
  41. celery_beat:
  42. build: .
  43. command: celery -A keyguard beat -l info
  44. volumes:
  45. - .:/code
  46. depends_on:
  47. - redis
  48. env_file:
  49. - "keyguard/.env"
  50.  
  51. centrifugo:
  52. image: centrifugo/centrifugo:v2.7.2
  53. command: centrifugo -c config.json --port=8086 --admin
  54. ports:
  55. - "8086:8086"
  56. volumes:
  57. - ./config.json:/centrifugo/config.json
  58.  
  59.  
  60.  
  61. networks:
  62. default:
  63. external:
  64. name: my_network
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement