-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
66 lines (60 loc) · 1.76 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.5"
networks:
grph_net:
name: grph_net
ipam:
driver: default
x-build-kwargs:
&build_kwargs
args:
- APP_BUILD_TAG=${APP_BUILD_TAG:-latest}
context: .
x-production-options:
&production_opts
networks:
- grph_net
logging:
driver: json-file
options:
compress: "true"
max-size: "10m"
max-file: "10"
mode: "non-blocking"
max-buffer-size: "5m"
tag: "{{.ImageName}}/{{.Name}}/{{.ID}}"
# https://github.com/seccomp/libseccomp/issues/153
security_opt: # Purely for local dev / ci perf
- seccomp:unconfined
services:
graphistry-js:
<< : *production_opts
image: graphistry/graphistry-js:${APP_BUILD_TAG:-latest}
build:
<< : *build_kwargs
dockerfile: ./Dockerfile
init: true
storybook:
<< : *production_opts
image: graphistry/graphistry-js:${APP_BUILD_TAG:-latest}
build:
<< : *build_kwargs
dockerfile: ./Dockerfile
ports:
- "6006:6006"
init: true
working_dir: /opt/graphistry-js/projects/client-api-react
environment:
- NODE_OPTIONS=--max_old_space_size=6144
- NODE_ENV=development
- STORYBOOK_DISABLE_TELEMETRY=1
command:
- npm
- run
- storybook
volumes:
# TODO does not seem to get picked up
- ./projects/client-api/src:/opt/graphistry-js/projects/client-api/src:ro
- ./projects/client-api-react/package.json:/opt/graphistry-js/projects/client-api-react/package.json:ro
- ./projects/client-api-react/src:/opt/graphistry-js/projects/client-api-react/src:ro
- ./projects/client-api-react/assets:/opt/graphistry-js/projects/client-api-react/assets:ro
- ./projects/client-api-react/.storybook:/opt/graphistry-js/projects/client-api-react/.storybook:ro