-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 1.1 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
version: '3.7'
networks:
frontend:
driver: ${NETWORKS_DRIVER}
services:
### ML Front-End App ##############################################
application:
build:
context: .
dockerfile: ${DOCKER_FILE}
ports:
- "${REACT_APP_PORT}:3000"
volumes:
- /app/node_modules
- .:${APP_CODE_PATH_CONTAINER}
env_file:
- ./.env
networks:
- frontend
stdin_open: true
### ML Front-End Test ##############################################
tests:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- /app/node_modules
- .:${APP_CODE_PATH_CONTAINER}
command: ["npm", "run", "test"]
env_file:
- ./.env
networks:
- frontend
### ML Front-End Story Book ############################################
story-book:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "${REACT_APP_STORYBOOK_PORT}:9009"
volumes:
- /app/node_modules
- .:${APP_CODE_PATH_CONTAINER}
command: ["npm", "run", "storybook"]
env_file:
- ./.env
networks:
- frontend