|
@@ -1,34 +1,31 @@
|
|
|
services:
|
|
|
-# select:
|
|
|
-# build:
|
|
|
-# context: .
|
|
|
-# dockerfile: Dockerfile
|
|
|
-# image: content_job
|
|
|
-# container_name: content_worker1
|
|
|
-# restart: unless-stopped
|
|
|
-# environment:
|
|
|
-# - ENV=prod
|
|
|
-# networks:
|
|
|
-# - content_net
|
|
|
-# entrypoint: "python /app/workers/select_work.py"
|
|
|
-# consumption:
|
|
|
-# image: content_job
|
|
|
-# restart: unless-stopped
|
|
|
-# env_file:
|
|
|
-# - product.env
|
|
|
-# volumes:
|
|
|
-# - ./sh:/app/sh
|
|
|
-# - /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
-# networks:
|
|
|
-# - content_net
|
|
|
-# deploy:
|
|
|
-# replicas: 20
|
|
|
-# entrypoint: sh /app/sh/select.sh
|
|
|
- select_spider:
|
|
|
+ select:
|
|
|
build:
|
|
|
context: .
|
|
|
dockerfile: Dockerfile
|
|
|
image: content_job
|
|
|
+ container_name: content_worker1
|
|
|
+ restart: unless-stopped
|
|
|
+ environment:
|
|
|
+ - ENV=prod
|
|
|
+ networks:
|
|
|
+ - content_net
|
|
|
+ entrypoint: "python /app/workers/select_work.py"
|
|
|
+ consumption:
|
|
|
+ image: content_job
|
|
|
+ restart: unless-stopped
|
|
|
+ env_file:
|
|
|
+ - product.env
|
|
|
+ volumes:
|
|
|
+ - ./sh:/app/sh
|
|
|
+ - /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
+ networks:
|
|
|
+ - content_net
|
|
|
+ deploy:
|
|
|
+ replicas: 20
|
|
|
+ entrypoint: sh /app/sh/select.sh
|
|
|
+ select_spider:
|
|
|
+ image: content_job
|
|
|
restart: unless-stopped
|
|
|
environment:
|
|
|
- ENV=prod
|