-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.dev.yml
49 lines (43 loc) · 1.18 KB
/
docker-compose.dev.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
version: '3.5'
services:
db:
container_name: db_noctua
image: mongo
command: mongod --quiet --logpath /dev/null
ports:
- 27017:27017
metabase:
container_name: metabase
image: metabase/metabase
ports:
- "1515:3000"
api:
depends_on:
- db
volumes:
- ./server:/app
- ./server/node_modules:/app/node_modules
container_name: backend_noctua
environment:
- DATABASE_URL=mongodb+srv://Noctua:[email protected]/myFirstDatabase?retryWrites=true&w=majority
build:
context: ./server
dockerfile: Dockerfile.dev
ports:
- "5000:5000"
command: npm start
front:
environment:
CHOKIDAR_USEPOLLING: "true"
volumes:
- ./front:/app
- ./front/node_modules:/app/node_modules
container_name: frontend_noctua
build:
context: ./front
dockerfile: Dockerfile.dev
command: yarn start
ports:
- "3000:3000"
depends_on:
- api