-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (48 loc) · 1.23 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.5'
services:
###
# api
###
api:
build:
context: .
dockerfile: ./images/api/Dockerfile.development
command: >
sh -c "yarn nest:dev"
container_name: plutus_api
depends_on:
- database
env_file:
- ./.config/.env
image: plutus/api
networks:
- plutus_network
ports:
- "${APP_PORT:-3000}:${APP_PORT:-3000}"
volumes:
- ./src:/usr/app/src:cached
- ./nest-cli.json:/usr/app/nest-cli.json:cached
- ./package.json:/usr/app/package.json:cached
- ./tsconfig.build.json:/usr/app/tsconfig.build.json:cached
- ./tsconfig.json:/usr/app/tsconfig.json:cached
- ./yarn.lock:/usr/app/yarn.lock:cached
###
# databases
###
database:
build:
context: .
dockerfile: ./images/database/Dockerfile.development
container_name: plutus_database
environment:
MONGO_INITDB_DATABASE: ${MONGODB_NAME:-plutus}
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD:-password}
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USERNAME:-admin}
image: plutus/database
networks:
- plutus_network
ports:
- "${MONGODB_PORT:-27017}:${MONGODB_PORT:-27017}"
networks:
plutus_network:
name: plutus_network