1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- services:
- select:
- build:
- context: .
- dockerfile: Dockerfile
- # image: tool_job
- # container_name: tool_worker1
- # restart: unless-stopped
- # environment:
- # - ENV=prod
- # networks:
- # - tool_net
- # entrypoint: "python /app/workers/consumption_work_studio.py"
- 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: 13
- entrypoint: sh /app/sh/select.sh
- # select_studio:
- # image: tool_job
- # restart: unless-stopped
- # environment:
- # - ENV=prod
- # networks:
- # - tool_net
- # entrypoint: "python /app/workers/select_work_studio.py"
- # select:
- # 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: 10
- # entrypoint: sh /app/sh/select.sh
- consumption:
- 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: 13
- entrypoint: sh /app/sh/consumption.sh
- networks:
- tool_net:
- name: tool_net
|