-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
64 lines (58 loc) · 1.12 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
version: "3.8"
services:
# app services
frontend:
build:
context: ./client/
target: development
volumes:
- ./client/:/app
- /app/node_modules
ports:
- "3000:3000"
depends_on:
- backend
links:
- backend:server
environment:
NODE_ENV: development
CHOKIDAR_USEPOLLING: "true"
backend:
build:
context: ./server/
target: development
volumes:
- ./server/:/app
- /app/node_modules
ports:
- "3001:3001"
environment:
NODE_ENV: development
CHOKIDAR_USEPOLLING: "true"
# test services
client-tests:
profiles: ["test"]
stdin_open: true
tty: true
build:
context: ./client/
target: test
volumes:
- ./client/:/app
- /app/node_modules
environment:
NODE_ENV: test
CHOKIDAR_USEPOLLING: "true"
server-tests:
profiles: ["test"]
stdin_open: true
tty: true
build:
context: ./server/
target: test
volumes:
- ./server/:/app
- /app/node_modules
environment:
NODE_ENV: test
CHOKIDAR_USEPOLLING: "true"