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/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: 2 entrypoint: sh /app/start.sh networks: content_net: name: content_net