45 lines
817 B
YAML
45 lines
817 B
YAML
services:
|
|
back:
|
|
build:
|
|
context: ./back
|
|
image: cht-lawfirm-back-dev
|
|
restart: always
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./back/app:/code/app
|
|
- ./back/media:/code/media
|
|
|
|
front:
|
|
build:
|
|
context: ./front
|
|
image: cht-lawfirm-front-dev
|
|
restart: always
|
|
ports:
|
|
- "4200:4200"
|
|
volumes:
|
|
- ./front/app/src:/app/src
|
|
- ./front/app/public:/app/public
|
|
|
|
nginx:
|
|
build:
|
|
context: ./nginx
|
|
image: cht-lawfirm-nginx-dev
|
|
restart: always
|
|
ports:
|
|
- "80:80"
|
|
|
|
mongo:
|
|
image: "mongo:4.4.19"
|
|
restart: always
|
|
ports:
|
|
- "27017:27017"
|
|
environment:
|
|
MONGO_INITDB_ROOT_USERNAME: root
|
|
MONGO_INITDB_ROOT_PASSWORD: IBO3eber0mdw2R9pnInLdtFykQFY2f06
|
|
volumes:
|
|
- database:/data/db
|
|
|
|
volumes:
|
|
database:
|