|
@@ -9,32 +9,30 @@ services:
|
|
|
environment:
|
|
|
- ENV=prod
|
|
|
networks:
|
|
|
- - carry_net
|
|
|
+ - top_net
|
|
|
worker2:
|
|
|
- build:
|
|
|
- context: .
|
|
|
- dockerfile: Dockerfile
|
|
|
+ depends_on:
|
|
|
+ - worker1
|
|
|
image: top_data
|
|
|
container_name: top_worker2
|
|
|
restart: unless-stopped
|
|
|
environment:
|
|
|
- ENV=prod
|
|
|
networks:
|
|
|
- - carry_net
|
|
|
- entrypoint: "python /app/job_data_redis.py"
|
|
|
+ - top_net
|
|
|
+ entrypoint: "python /app/job_top_day_redis.py"
|
|
|
worker3:
|
|
|
- build:
|
|
|
- context: .
|
|
|
- dockerfile: Dockerfile
|
|
|
+ depends_on:
|
|
|
+ - worker1
|
|
|
image: top_data
|
|
|
container_name: top_worker3
|
|
|
restart: unless-stopped
|
|
|
environment:
|
|
|
- ENV=prod
|
|
|
networks:
|
|
|
- - carry_net
|
|
|
+ - top_net
|
|
|
entrypoint: "python /app/job_top_hour_data_redis.py"
|
|
|
networks:
|
|
|
- carry_net:
|
|
|
- name: carry_net
|
|
|
+ top_net:
|
|
|
+ name: top_net
|
|
|
|