-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (50 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
54 lines (50 loc) · 1.11 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
version: '3.7'
services:
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- '//C/private/sample/frontend:/app'
- '//C/private/sample/frontend/node_modules'
- '//C/private/sample/frontend/package.json'
ports:
- '3000:3000'
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
links:
- "api"
depends_on:
- "api"
api:
container_name: api
build:
context: ./api
dockerfile: Dockerfile
volumes:
- '//C/private/sample/api:/app'
- '//C/private/sample/api/node_modules'
- '//C/private/sample/api/package.json'
ports:
- '5000:5000'
links:
- "arangodb"
depends_on:
- "arangodb"
restart: on-failure
arangodb:
container_name: arangodb
build:
context: ./arangodb
dockerfile: Dockerfile
ports:
- 8529:8529
environment:
- ARANGO_ROOT_PASSWORD=passwd
healthcheck:
test: ["CMD", "curl", "-f", "http://arangodb:8529"]
interval: 10s
timeout: 10s
retries: 10