services: select: build: context: . dockerfile: Dockerfile image: video_insight_job container_name: video_insight_worker1 restart: unless-stopped environment: - ENV=prod networks: - video_insight_net entrypoint: "python /app/workers/video_insight_select_work.py" consumption: image: video_insight_job restart: unless-stopped env_file: - product.env volumes: - ./sh:/app/sh - /var/run/docker.sock:/var/run/docker.sock:ro networks: - video_insight_net deploy: replicas: 10 entrypoint: sh /app/start.sh networks: video_insight_net: name: video_insight_net