|
@@ -3,16 +3,16 @@ services:
|
|
build:
|
|
build:
|
|
context: .
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
dockerfile: Dockerfile
|
|
- image: content_job
|
|
|
|
- container_name: content_worker1
|
|
|
|
|
|
+ image: video_insight_job
|
|
|
|
+ container_name: video_insight_worker1
|
|
restart: unless-stopped
|
|
restart: unless-stopped
|
|
environment:
|
|
environment:
|
|
- ENV=prod
|
|
- ENV=prod
|
|
networks:
|
|
networks:
|
|
- - content_net
|
|
|
|
|
|
+ - video_insight_net
|
|
entrypoint: "python /app/workers/select_work.py"
|
|
entrypoint: "python /app/workers/select_work.py"
|
|
consumption:
|
|
consumption:
|
|
- image: content_job
|
|
|
|
|
|
+ image: video_insight_job
|
|
restart: unless-stopped
|
|
restart: unless-stopped
|
|
env_file:
|
|
env_file:
|
|
- product.env
|
|
- product.env
|
|
@@ -20,7 +20,7 @@ services:
|
|
- ./sh:/app/sh
|
|
- ./sh:/app/sh
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
networks:
|
|
networks:
|
|
- - content_net
|
|
|
|
|
|
+ - video_insight_net
|
|
deploy:
|
|
deploy:
|
|
replicas: 2
|
|
replicas: 2
|
|
entrypoint: sh /app/start.sh
|
|
entrypoint: sh /app/start.sh
|