-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
66 lines (65 loc) · 1.54 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "3.9"
services:
arango:
image: arangobnb-db
build:
context: ./database
dockerfile: Dockerfile
environment:
- ARANGO_ROOT_PASSWORD=123
ports:
- 8529:8529
volumes:
- .data:/var/lib/arangodb3:delegated
backend:
image: arangobnb-backend
build:
context: ./workspaces/backend
dockerfile: Dockerfile
target: base
args:
- NODE_ENV=development
environment:
- NODE_ENV=development
- DB_PASSWORD=123
- DB_URL=http://arango:8529
env_file:
- ./workspaces/backend/.env.local
ports:
- 5000:5000
volumes:
- ./workspaces/backend/src:/code/src
command: node .bin/watch.js
frontend-react:
image: arangobnb-frontend-react
build:
context: ./workspaces/frontend-react
dockerfile: Dockerfile
target: base
args:
- NODE_ENV=development
environment:
- NODE_ENV=development
- API_URL=http://localhost:5000
ports:
- 8081:3000
volumes:
- ./workspaces/frontend-react/src:/code/src
- ./workspaces/frontend-react/public:/code/public
command: npm start
frontend-vue:
image: arangobnb-frontend-vue
build:
context: ./workspaces/frontend-vue
dockerfile: Dockerfile
target: base
args:
- NODE_ENV=development
environment:
- NODE_ENV=development
- VUE_APP_API_ENDPOINT=http://localhost:5000
ports:
- 8080:8080
volumes:
- ./workspaces/frontend-vue/src:/code/src
command: npm run serve