@@ -36,7 +36,7 @@ services:
3636 main-server :
3737 env_file :
3838 - ./server/dockerconfs/.env.local
39- image : tca-main:latest
39+ image : tencenttca/ tca-main:latest
4040 build :
4141 context : ./server/projects/main
4242 dockerfile : ../../dockerconfs/Dockerfile-common-${ORIGIN:-mirror}
@@ -59,7 +59,7 @@ services:
5959 main-worker :
6060 env_file :
6161 - ./server/dockerconfs/.env.local
62- image : tca-main:latest
62+ image : tencenttca/ tca-main:latest
6363 command :
6464 [
6565 " celery" ,
@@ -73,14 +73,18 @@ 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
7983
8084 main-beat :
8185 env_file :
8286 - ./server/dockerconfs/.env.local
83- image : tca-main:latest
87+ image : tencenttca/ tca-main:latest
8488 command :
8589 [
8690 " celery" ,
@@ -98,11 +102,12 @@ services:
98102 depends_on :
99103 - mysql
100104 - redis
105+ restart : on-failure
101106
102107 analysis-server :
103108 env_file :
104109 - ./server/dockerconfs/.env.local
105- image : tca-analysis:latest
110+ image : tencenttca/ tca-analysis:latest
106111 build :
107112 context : ./server/projects/analysis
108113 dockerfile : ../../dockerconfs/Dockerfile-common-${ORIGIN:-mirror}
@@ -125,7 +130,7 @@ services:
125130 analysis-worker :
126131 env_file :
127132 - ./server/dockerconfs/.env.local
128- image : tca-analysis:latest
133+ image : tencenttca/ tca-analysis:latest
129134 command :
130135 [
131136 " celery" ,
@@ -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
@@ -149,6 +157,7 @@ services:
149157 build :
150158 context : ./server/projects/login
151159 dockerfile : ../../dockerconfs/Dockerfile-common-${ORIGIN:-mirror}
160+ image : tencenttca/tca-login:latest
152161 command :
153162 [
154163 " gunicorn" ,
@@ -170,6 +179,7 @@ services:
170179 build :
171180 context : ./server/projects/file
172181 dockerfile : ../../dockerconfs/Dockerfile-common-${ORIGIN:-mirror}
182+ image : tencenttca/tca-file:latest
173183 command :
174184 [
175185 " gunicorn" ,
@@ -202,6 +212,7 @@ services:
202212 build :
203213 context : ./server/projects/scmproxy
204214 dockerfile : ../../dockerconfs/Dockerfile-common-${ORIGIN:-mirror}
215+ image : tencenttca/tca-scmproxy:latest
205216 command : [ "python", "proxyserver.py" ]
206217 volumes :
207218 - ./.docker_data/logs/scmproxy:/var/www/django/codedog/logs
@@ -233,6 +244,7 @@ services:
233244 build :
234245 context : ./client
235246 dockerfile : Dockerfile
247+ image : tencenttca/tca-client:latest
236248 command :
237249 - /bin/bash
238250 - -c
0 commit comments