-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (55 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
60 lines (55 loc) · 1.04 KB
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
58
59
60
version: "3.8"
services:
frontend:
container_name: pal-frontend
image: pal-frontend
depends_on:
- backend
environment:
- NODE_ENV=dev
build:
context: ./btp-frontend
ports:
- "4200:4200"
volumes:
- ./btp-frontend:/code
- /code/node_modules
restart: on-failure
backend:
container_name: pal-backend
image: pal-backend
depends_on:
- mongodb
build:
context: ./backend
environment:
- NODE_ENV=DEV
ports:
- "8080:8080"
restart: on-failure
volumes:
- ./backend:/code
- /code/node_modules
scripts:
container_name: pal-scripts
image: pal-scripts
depends_on:
- mongodb
build:
context: ./scripts
ports:
- "8000:8000"
restart: on-failure
volumes:
- ./scripts:/code
- /code/node_modules
mongodb:
container_name: pal-mongodb
image: mongo
ports:
- "27017:27017"
restart: on-failure
volumes:
- pal-mongodb:/data/db
volumes:
pal-mongodb: