forked from equinor/eit-web-ar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
65 lines (60 loc) · 1.38 KB
/
docker-compose.yaml
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
61
62
63
64
65
# Development environment for backend
version: "3.7"
services:
storage:
container_name: storage
hostname: storage
env_file:
- ./.env
build:
context: ./storage/
dockerfile: dockerfile.storage
networks:
- eit-web-ar
ports:
- "6379:6379"
restart: always
backend:
container_name: backend_development
hostname: backend
env_file:
- ./.env
image: node:12
tty: true
working_dir: /backend
volumes:
- type: bind
source: ./backend
target: /backend
- type: volume
source: backend-node-modules
target: /backend/node_modules
networks:
- eit-web-ar
ports:
- "3100:3100"
frontend:
container_name: frontend_development
hostname: frontend
image: node:12
tty: true
working_dir: /frontend
volumes:
- type: bind
source: ./frontend
target: /frontend
- type: volume
source: frontend-node-modules
target: /frontend/node_modules
networks:
- eit-web-ar
ports:
- "3000:3000"
volumes:
frontend-node-modules:
name: eit-web-ar_frontend-node-modules
backend-node-modules:
name: eit-web-ar_backend-node-modules
networks:
eit-web-ar:
name: eit-web-ar