Naming containers and freezing mongo version to 4.4.19

This commit is contained in:
2023-03-16 02:23:54 +01:00
parent f35182233b
commit 2b55d206e2
2 changed files with 7 additions and 4 deletions

View File

@@ -3,9 +3,8 @@ services:
back: back:
build: build:
context: ${ROOT_PATH}/back context: ${ROOT_PATH}/back
image: cht-lawfirm-back-prod
restart: always restart: always
ports:
- "8000:8000"
volumes: volumes:
- ${ROOT_PATH}/back/app:/code/app - ${ROOT_PATH}/back/app:/code/app
- ${ROOT_PATH}/back/media:/code/media - ${ROOT_PATH}/back/media:/code/media
@@ -14,12 +13,13 @@ services:
build: build:
context: ${ROOT_PATH}/front context: ${ROOT_PATH}/front
dockerfile: prod.Dockerfile dockerfile: prod.Dockerfile
image: cht-lawfirm-nginx-prod
restart: always restart: always
ports: ports:
- "3820:80" - "3820:80"
mongo: mongo:
image: "mongo:4.4.18" image: "mongo:4.4.19"
restart: always restart: always
ports: ports:
- "27017:27017" - "27017:27017"

View File

@@ -3,6 +3,7 @@ services:
back: back:
build: build:
context: ./back context: ./back
image: cht-lawfirm-back-dev
restart: always restart: always
ports: ports:
- "8000:8000" - "8000:8000"
@@ -13,6 +14,7 @@ services:
front: front:
build: build:
context: ./front context: ./front
image: cht-lawfirm-front-dev
restart: always restart: always
ports: ports:
- "4200:4200" - "4200:4200"
@@ -23,12 +25,13 @@ services:
nginx: nginx:
build: build:
context: ./nginx context: ./nginx
image: cht-lawfirm-nginx-dev
restart: always restart: always
ports: ports:
- "80:80" - "80:80"
mongo: mongo:
image: "mongo" image: "mongo:4.4.19"
restart: always restart: always
ports: ports:
- "27017:27017" - "27017:27017"