-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
95 lines (88 loc) · 3.31 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
services:
next-app:
container_name: next-app
build:
context: src/client/
dockerfile: web.Dockerfile
environment:
NBS_API_BASE_URL: http://api:80
AUTH_HOST: http://localhost:7071
CLIENT_BASE_PATH: /manage-your-appointments
volumes:
- ./src/client/src:/app/src
- ./src/client/public:/app/public
restart: always
ports:
- 3000:3000
api:
container_name: api
build:
context: src/api/
dockerfile: api.Dockerfile
ports:
- 7071:80
environment:
- AzureWebJobsStorage="UseDevelopmentStorage=true"
- AzureWebJobs.NotifyUserRolesChanged.Disabled=true
- AzureWebJobs.NotifyBookingMade.Disabled=true
- AzureWebJobs.NotifyBookingRescheduled.Disabled=true
- AzureWebJobs.NotifyBookingCancelled.Disabled = true
- AzureWebJobs.SendBookingReminders.Disabled=true
- AzureWebJobs.NotifyBookingReminder.Disabled=true
- AzureWebJobs.RemoveUnconfirmedProvisionalBookings.Disabled=true
- FUNCTIONS_WORKER_RUNTIME=dotnet-isolated
- COSMOS_ENDPOINT=${COSMOS_ENDPOINT:-https://host.docker.internal:8081}
- COSMOS_TOKEN=${COSMOS_TOKEN:-C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==}
- COSMOS_IGNORE_SSL_CERT=true
- LEASE_MANAGER_CONNECTION=local
- AuthProvider_Issuer=http://oidc-server
- AuthProvider_AuthorizeUri=http://localhost:8020/connect/authorize
- AuthProvider_TokenUri=http://oidc-server/connect/token
- AuthProvider_JwksUri=http://oidc-server/.well-known/openid-configuration/jwks
- AuthProvider_ChallengePhrase=ThisIsntRandomButItNeedsToBe43CharactersLong
- AuthProvider_ClientId=nhs-appts-local
- AuthProvider_ReturnUri=http://localhost:7071/api/auth-return
- AuthProvider_ClientCodeExchangeUri=http://localhost:3000/manage-your-appointments/auth/set-cookie
- Notifications_Provider=local
- BookingRemindersCronSchedule=0 0 8 * * *
- UnconfirmedProvisionalBookingsCronSchedule=*/5 * * * *
- SPLUNK_HOST_URL=http://splunk:8088/services/collector/raw
- SPLUNK_HEC_TOKEN=e2c421cf-9228-4ab2-a6e8-877741df569a
splunk:
image: splunk/splunk:latest
container_name: splunk
environment:
- SPLUNK_START_ARGS=--accept-license
- SPLUNK_PASSWORD=Password1!
- SPLUNK_HEC_SSL=false
ports:
- "8000:8000" # Splunk Web UI
- "8088:8088" # Splunk HEC
volumes:
- splunk-data:/opt/splunk/var
oidc-server:
image: soluto/oidc-server-mock:latest
ports:
- "8010:443"
- "8020:80"
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: https://+:443;http://+80
ASPNETCORE_HTTPS_PORT: 8010
ASPNETCORE_Kestrel__Certificates__Default__Password: password
ASPNETCORE_Kestrel__Certificates__Default__Path: /https/aspnetapp.pfx
AUTHENTICATION:ISSUER: https://localhost:8010
SERVER_OPTIONS_INLINE: |
{
"Authentication": {
"CookieSameSiteMode": "Lax",
"CheckSessionCookieSameSiteMode": "Lax"
}
}
USERS_CONFIGURATION_PATH: /tmp/config/users.json
CLIENTS_CONFIGURATION_PATH: /tmp/config/config.json
volumes:
- ./mock-oidc:/tmp/config:ro
- ${PFX_CERT_PATH:-~/.aspnet/https}:/https:ro
volumes:
splunk-data: