generated from oss-slu/project_template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
44 lines (36 loc) · 919 Bytes
/
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
services:
mongodb:
image: mongo
container_name: volunteer-db-container
ports:
- "27017:27017"
data-importer:
image: mongo
volumes:
- ./docker_files/database/volunteers.json:/volunteers.json
command: sh -c "mongoimport --host mongodb --db volunteers_db --collection shifts --type json --file /volunteers.json --jsonArray"
depends_on:
- mongodb
backend:
build:
context: ./server
dockerfile: ../docker_files/server/Dockerfile
ports:
- "5000:5000"
depends_on:
- mongodb
frontend:
build:
context: ./client_app
dockerfile: ../docker_files/client_app/Dockerfile
ports:
- "3000:3000"
develop:
watch:
- path: client_app/package.json
action: rebuild
- path: client_app/
target: /usr/src/app
action: sync
depends_on:
- backend