File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,6 +73,10 @@ services:
7373 volumes :
7474 - ./server/configs/django/local_main.py:/var/www/django/codedog/codedog/settings/local.py
7575 - ./.docker_data/logs/main_worker:/var/www/django/codedog/log
76+ healthcheck :
77+ test : ["CMD-SHELL", "bash bin/healthy_check.sh"]
78+ interval : 60s
79+ restart : always
7680 depends_on :
7781 - mysql
7882 - redis
@@ -98,6 +102,7 @@ services:
98102 depends_on :
99103 - mysql
100104 - redis
105+ restart : on-failure
101106
102107 analysis-server :
103108 env_file :
@@ -139,6 +144,9 @@ services:
139144 volumes :
140145 - ./server/configs/django/local_analysis.py:/var/www/django/codedog/codedog/settings/local.py
141146 - ./.docker_data/logs/analysis_worker:/var/www/django/codedog/log
147+ healthcheck :
148+ test : ["CMD-SHELL", "bash bin/healthy_check.sh"]
149+ interval : 60s
142150 depends_on :
143151 - mysql
144152 - redis
You can’t perform that action at this time.
0 commit comments