-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.e2e.yml
More file actions
67 lines (62 loc) · 1.88 KB
/
docker-compose.e2e.yml
File metadata and controls
67 lines (62 loc) · 1.88 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
56
57
58
59
60
61
62
63
64
65
66
67
name: hawk-e2e
services:
db:
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
ACCEPT_EULA: "Y"
MSSQL_PID: "Developer"
SA_PASSWORD: "${SA_PASSWORD:-YourStrong!Passw0rd}"
# E2E should be hermetic: use an ephemeral database per run.
tmpfs:
# SQL Server runs as user `mssql` (typically uid 10001) and needs write access.
- /var/opt/mssql:uid=10001,gid=0,mode=0770
mock:
build:
context: .
dockerfile: Hawk.MockServer/Dockerfile
environment:
ASPNETCORE_ENVIRONMENT: "Production"
ASPNETCORE_URLS: "http://+:8081"
expose:
- "8081"
web:
build:
context: .
dockerfile: Hawk.Web/Dockerfile
environment:
ASPNETCORE_ENVIRONMENT: "Testing"
ASPNETCORE_URLS: "http://0.0.0.0:8080"
ConnectionStrings__DefaultConnection: "Server=db;Database=HawkE2E;User Id=sa;Password=${SA_PASSWORD:-YourStrong!Passw0rd};TrustServerCertificate=true;Encrypt=false"
Hawk__DisableHttpsRedirection: "true"
Hawk__SeedAdmin__Email: "[email protected]"
Hawk__SeedAdmin__Password: "Hawk!2026-Admin#1"
Hawk__Scheduler__Enabled: "true"
Hawk__Scheduler__TickSeconds: "1"
Hawk__Email__Enabled: "true"
Hawk__Email__From: "Hawk <hawk@localhost>"
Hawk__Resend__BaseUrl: "http://mock:8081"
Hawk__Resend__ApiKey: "dev"
depends_on:
- db
- mock
expose:
- "8080"
volumes:
- hawk_e2e_dpkeys:/var/lib/hawk/dpkeys
e2e:
build:
context: .
dockerfile: e2e/Dockerfile
environment:
HAWK_BASE_URL: "http://web:8080"
HAWK_SEED_EMAIL: "[email protected]"
HAWK_SEED_PASSWORD: "Hawk!2026-Admin#1"
MOCK_BASE_URL: "http://mock:8081"
SCREENSHOTS_DIR: "/work/screenshots"
E2E_DOCKER: "1"
depends_on:
- web
volumes:
- ./screenshots:/work/screenshots
volumes:
hawk_e2e_dpkeys: