12345678910111213141516171819202122232425262728 |
- services:
- consumption:
- build:
- context: .
- dockerfile: Dockerfile
- image: tool_job
- restart: unless-stopped
- env_file:
- - product.env
- volumes:
- - ./sh:/app/sh
- - /var/run/docker.sock:/var/run/docker.sock:ro
- networks:
- - tool_net
- deploy:
- replicas: 6
- entrypoint: sh /app/sh/consumption.sh
- job_video:
- image: tool_job
- restart: unless-stopped
- environment:
- - ENV=prod
- networks:
- - tool_net
- entrypoint: "python /app/workers/video_count_job.py"
- networks:
- tool_net:
- name: tool_net
|