docker-compose.yml 666 B

1234567891011121314151617181920212223242526272829
  1. services:
  2. select:
  3. build:
  4. context: .
  5. dockerfile: Dockerfile
  6. image: video_insight_job
  7. container_name: video_insight_worker1
  8. restart: unless-stopped
  9. environment:
  10. - ENV=prod
  11. networks:
  12. - video_insight_net
  13. entrypoint: "python /app/workers/video_insight_select_work.py"
  14. consumption:
  15. image: video_insight_job
  16. restart: unless-stopped
  17. env_file:
  18. - product.env
  19. volumes:
  20. - ./sh:/app/sh
  21. - /var/run/docker.sock:/var/run/docker.sock:ro
  22. networks:
  23. - video_insight_net
  24. deploy:
  25. replicas: 2
  26. entrypoint: sh /app/start.sh
  27. networks:
  28. content_net:
  29. name: video_insight_net