File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: '3.3'
22
33services :
44 mongodb :
5- image : mongo:5.0
5+ image : mongo:${MONGO_TAG}
66 container_name : mongodb
77 # restart: always
88 volumes :
@@ -11,7 +11,12 @@ services:
1111 ports :
1212 - 127.0.0.1:27017-27019:27017-27019
1313 mcrit-server :
14- build : ./docker/mcrit/
14+ image : mcrit-server:${MCRIT_TAG}
15+ build :
16+ context : ./docker/mcrit/
17+ args :
18+ MCRIT_TAG : " ${MCRIT_TAG}"
19+ MCRIT_BRANCH : " ${MCRIT_BRANCH}"
1520 container_name : mcrit-server
1621 depends_on :
1722 - mongodb
@@ -23,7 +28,12 @@ services:
2328 ports :
2429 - 127.0.0.1:8000:8000
2530 mcrit-worker :
26- build : ./docker/mcrit/
31+ image : mcrit-worker:${MCRIT_TAG}
32+ build :
33+ context : ./docker/mcrit/
34+ args :
35+ MCRIT_TAG : " ${MCRIT_TAG}"
36+ MCRIT_BRANCH : " ${MCRIT_BRANCH}"
2737 container_name : mcrit-worker
2838 depends_on :
2939 - mongodb
@@ -33,7 +43,12 @@ services:
3343 entrypoint :
3444 - /entry_worker.sh
3545 mcritweb :
36- build : ./docker/mcritweb/
46+ image : mcritweb:${MCRITWEB_TAG}
47+ build :
48+ context : ./docker/mcritweb/
49+ args :
50+ MCRITWEB_BRANCH : " ${MCRITWEB_BRANCH}"
51+ MCRIT_TAG : " ${MCRIT_TAG}"
3752 container_name : mcritweb
3853 depends_on :
3954 - mcrit-server
You can’t perform that action at this time.
0 commit comments