-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
57 lines (57 loc) · 1.27 KB
/
docker-compose.yaml
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
54
55
56
57
version: "3.8"
services:
npm:
build:
context: ./
dockerfile: docker/node.Dockerfile
entrypoint: ['npm']
volumes:
- ./:/code/quiz-api
- ./docker/dev/volumes/mongo-memory-server:/.cache/mongodb-binaries
nest:
build:
context: ./
dockerfile: docker/node.Dockerfile
entrypoint: ['nest']
volumes:
- ./:/code/quiz-api
start:
build:
context: ./
dockerfile: docker/node.Dockerfile
ports:
- '3000:3000'
command: ['npm', 'start']
volumes:
- ./:/code/quiz-api
depends_on:
- mongo
start-dev:
build:
context: ./
dockerfile: docker/node.Dockerfile
ports:
- '3000:3000'
command: ['npm', 'run', 'start:dev']
volumes:
- ./:/code/quiz-api
depends_on:
- mongo
mongo:
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: secret
MONGO_INITDB_DATABASE: quiz
volumes:
- ./docker/dev/volumes/mongo:/data/db
mongo-express:
image: mongo-express
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: secret
ME_CONFIG_MONGODB_URL: mongodb://root:secret@mongo:27017/
depends_on:
- mongo