Skip to content

Commit 001650c

Browse files
add env var use to dev compose file
1 parent e387538 commit 001650c

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

docker-compose-dev.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.3'
22

33
services:
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

0 commit comments

Comments
 (0)