Save youtube before it dies
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
885 B

1 year ago
  1. version: '3'
  2. services:
  3. web:
  4. build: ./backend
  5. image: master-image
  6. environment:
  7. - TRANSFORMERS_CACHE=/app/.cache
  8. ports:
  9. - 5000:5000
  10. command: /usr/local/bin/gunicorn -b :5000 main:app
  11. volumes:
  12. - ./dump/backend:/data
  13. depends_on:
  14. - redis
  15. - typesense
  16. rq-worker:
  17. image: master-image
  18. depends_on:
  19. - redis
  20. command: rq worker -u redis://redis:6379 discover download
  21. volumes:
  22. - ./dump/backend:/data
  23. deploy:
  24. replicas: 2
  25. redis:
  26. image: redis:alpine
  27. ports:
  28. - 6379:6379
  29. typesense:
  30. image: typesense/typesense:0.24.1
  31. environment:
  32. TYPESENSE_DATA_DIR: /data
  33. TYPESENSE_API_KEY: jVkJyIqRRJbn5EqzdPQRcSzCurI5V7mt
  34. TYPESENSE_SEARCH_ONLY_API_KEY: Q918wGcKZoy81tl45QvBacaHXQAIdciq
  35. volumes:
  36. - ./dump/typesense:/data
  37. ports:
  38. - 8108:8108