-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (46 loc) · 1.31 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
version: "3.0"
services:
application:
container_name: foodfinder-application
image: node:lts-alpine
ports:
- "3000:3000"
volumes:
- ./code:/home/node/code
working_dir: /home/node/code/foodfinder-application
command: "npm run dev"
# user: ${MY_USER}
depends_on:
- backend
environment:
- HOST=0.0.0.0
- CHOKIDAR_USEPOLLING=true
- CHOKIDAR_INTERVAL=100
tty: true
backend:
container_name: foodfinder-backend
image: mongo:latest
restart: always
environment:
DB_NAME: foodfinder
MONGO_INITDB_DATABASE: foodfinder
ports:
- 27017:27017
volumes:
- "./.docker/foodfinder-backend/seed-mongodb.js:/docker-entrypoint-initdb.d/seed-mongodb.js"
- mongodb_data_container:/data/db
jest:
container_name: foodfinder-jest
image: node:lts-alpine
working_dir: /home/node/code/foodfinder-application
volumes:
- ./code:/home/node/code
depends_on:
- backend
- application
environment:
- NODE_ENV=test
tty: true
command: "npm run testWatch"
volumes:
mongodb_data_container: