forked from otto-de/b2b-design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
33 lines (31 loc) · 861 Bytes
/
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
version: '3.8'
services:
storybook:
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6006"]
interval: 5s
timeout: 20s
retries: 5
build:
context: .
dockerfile: test.Dockerfile
ports:
- "6006:6006"
command: npm run storybook -- -h 0.0.0.0
working_dir: /b2b/packages/core-components
volumes:
- ./packages/core-components/__snapshots__:/b2b/packages/core-components/__snapshots__
networks:
default:
aliases:
- storybook.local
run-tests:
build:
context: .
dockerfile: test.Dockerfile
volumes:
- ./packages/core-components/__snapshots__:/b2b/packages/core-components/__snapshots__
depends_on:
storybook:
condition: service_healthy
command: npx test-storybook --verbose --url http://storybook.local:6006