-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.e2e.yml
More file actions
37 lines (35 loc) · 954 Bytes
/
docker-compose.e2e.yml
File metadata and controls
37 lines (35 loc) · 954 Bytes
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
services:
web:
build:
context: .
args:
prunedev: 'false'
environment:
# Use Basic Auth for E2E tests (simpler than Okta)
AUTH_METHOD: basic
ADMIN_USERNAME: admin
ADMIN_PASSWORD: testpassword123
volumes:
# Share the database directory so E2E tests can clean it up
- db-data:/usr/src/app/localdata
e2e:
build:
context: .
dockerfile: Dockerfile.e2e
environment:
E2E_BASE_URL: http://web:3000
CI: ${CI:-false}
# Point to the same database location as web service
DATABASE_PATH: /usr/src/app/localdata/db.sqlite
depends_on:
- web
volumes:
- './e2e:/usr/src/app/e2e'
- './test-results:/usr/src/app/test-results'
- './playwright-report:/usr/src/app/playwright-report'
# Mount the same database volume as web service
- db-data:/usr/src/app/localdata
networks:
- default
volumes:
db-data: