-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
37 lines (37 loc) · 816 Bytes
/
Copy pathdocker-compose.dev.yml
File metadata and controls
37 lines (37 loc) · 816 Bytes
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
version: "3"
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile-dev
container_name: "frontend"
volumes:
- ./frontend/src:/app/src # for watching files
ports:
- "4200:4200"
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: "backend"
volumes:
- ./backend:/app # for watching files
ports:
- "8081:8081"
depends_on:
- db
links:
- db
db:
image: mongo
container_name: "mongodb"
volumes:
- ./docker-entrypoint.sh:/entrypoint.sh
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: admin
MONGO_INITDB_DATABASE: db
MONGO_INITDB_COLLECTION: board
ports:
- "27017:27017"
command: mongod --auth