-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 2.53 KB
/
Copy pathdocker-compose.yml
File metadata and controls
55 lines (51 loc) · 2.53 KB
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
services:
playwright-ct:
build:
context: .
dockerfile: Dockerfile.tests.component
# Volumes are auto-generated for all workspace packages by scripts/component-tests/generate-volumes.ts
# Run: pnpm run component-tests:generate-volumes to update volumes
volumes:
# Mount the whole workspace
- .:/app:cached
# Prevent host from overwriting container-installed deps
# Node_modules volumes are generated automatically for all workspace packages
- /app/node_modules
# Node_modules volumes (auto-generated for all workspace packages)
- /app/apps/backend/node_modules
- /app/apps/storybook/node_modules
- /app/apps/web-e2e/node_modules
- /app/apps/web/node_modules
- /app/packages/api/node_modules
- /app/packages/app-core-tests-utils/node_modules
- /app/packages/app-integration-tests-utils/node_modules
- /app/packages/class-names/node_modules
- /app/packages/component-core-tests-utils/node_modules
- /app/packages/data-source/node_modules
- /app/packages/error-utils/node_modules
- /app/packages/form-components/node_modules
- /app/packages/har-sanitizer/node_modules
- /app/packages/playwright-utils/node_modules
- /app/packages/react-router-utils/node_modules
- /app/packages/react-utils/node_modules
- /app/packages/tailwind/node_modules
- /app/packages/uikit/node_modules
- /app/packages/zod/node_modules
# Prevent host from overwriting playwright cache
- /app/packages/uikit/tests/component/playwright/.cache
entrypoint: ["pnpm"]
# The keys below live AFTER `entrypoint:` on purpose: generate-volumes.ts only
# rewrites the region between `volumes:` and `entrypoint:`, so anything past it
# survives volume regeneration.
#
# They let this same CI-matched image also run the apps/web-e2e screenshot tests
# (test:integration) against the app running natively on the host. `apps/web` must
# NOT be containerised (see docs/architecture/web-ssr.md), so the container reaches
# the host dev server via host.docker.internal. BASE_URL overrides the value in
# apps/web-e2e/integration/.env for in-container runs (dotenv uses override: false);
# AUTH_LOGIN / AUTH_PASSWORD are still read from that .env file. HAR mocks are updated
# by the test:integration:update script itself (it sets UPDATE=1 via cross-env).
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
BASE_URL: ${E2E_BASE_URL:-http://host.docker.internal:5173}