-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (46 loc) · 1.03 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
version: '3.8'
services:
front:
build:
context: ./
dockerfile: Dockerfile
environment:
- NODE_ENV=development
tty: true
stdin_open: true
ports:
- 8080:8080
volumes:
- ./:/app
- node_modules:/app/node_modules:delegated
npm:
image: shotaromatsuya/fbj:20
working_dir: /app
entrypoint: ['npm']
user: 'node:node'
volumes:
- ./:/app
- node_modules:/app/node_modules:delegated
cypress:
build:
context: ./cypress
dockerfile: Dockerfile.cypress
container_name: cypress
depends_on:
- front
command: npx cypress run
working_dir: /app
network_mode: host
# environment:
# - NODE_ENV=development
entrypoint: ['./node_modules/.bin/cypress']
volumes:
- node_modules:/app/node_modules:delegated
- ./:/app
volumes:
# ボリュームに保存しているnode_modulesをホスト側にバインドする
node_modules:
driver_opts:
type: none
device: ${PWD}/node_modules
o: bind