-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathactions-services.yml
103 lines (98 loc) · 3.47 KB
/
actions-services.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
96
97
98
99
100
101
102
103
services:
testdb:
image: mariadb:10
environment:
MYSQL_ROOT_PASSWORD: r00tp@ss!
MYSQL_DATABASE: test
MYSQL_USER: idbroker
MYSQL_PASSWORD: idbroker
app:
build: .
depends_on:
- testdb
- mfaapi
- u2fsim
working_dir: /data
environment:
API_KEY_TABLE: ApiKey
APP_ENV: test
AWS_ENDPOINT: dynamo:8000
AWS_DEFAULT_REGION: us-east-1
AWS_ACCESS_KEY_ID: abc123
AWS_SECRET_ACCESS_KEY: abc123
EMAIL_SERVICE_accessToken: fake-abc-123
EMAIL_SERVICE_assertValidIp: "false"
EMAIL_SERVICE_baseUrl: http://email
EMAIL_SERVICE_validIpRanges: 192.168.0.0/16
EMAIL_SIGNATURE: Dummy Signature for Automated Tests
EMAILER_CLASS: \Sil\SilIdBroker\Behat\Context\fakes\FakeEmailer
HELP_CENTER_URL: https://help-center
IDP_NAME: Test
MYSQL_HOST: testdb
MYSQL_DATABASE: test
MYSQL_USER: idbroker
MYSQL_PASSWORD: idbroker
API_ACCESS_KEYS: abc123
TEST_SERVER_HOSTNAME: localhost
PASSWORD_PROFILE_URL: https://www.example.com
SUPPORT_EMAIL: support@example.com
HR_NOTIFICATIONS_EMAIL: hr@example.com
ABANDONED_USER_bestPracticeUrl: http://www.example.com/best-practices.html
ABANDONED_USER_deactivateInstructionsUrl: http://www.example.com/deactivate-instructions.html
MFA_WEBAUTHN_apiBaseUrl: mfaapi:8080/
MFA_WEBAUTHN_apiKey: 10345678-1234-1234-1234-123456789012
MFA_WEBAUTHN_apiSecret: 11345678-1234-1234-1234-12345678
MFA_WEBAUTHN_appId: ourApp99
MFA_WEBAUTHN_rpDisplayName: Our App
MFA_WEBAUTHN_rpId: http://app99
U2F_SIM_HOST_AND_PORT: u2fsim:8080
dynamo:
image: amazon/dynamodb-local
ports:
- "8000:8000"
environment:
AWS_ACCESS_KEY_ID: abc123
AWS_SECRET_ACCESS_KEY: abc123
AWS_DEFAULT_REGION: us-east-1
command: "-jar DynamoDBLocal.jar -sharedDb"
# Don't use underscores in service names
mfaapi:
build: ./serverless-mfa-api
ports:
- 8080
environment:
AWS_ENDPOINT: dynamo:8000
AWS_DEFAULT_REGION: us-east-1
AWS_ACCESS_KEY_ID: abc123
AWS_SECRET_ACCESS_KEY: abc123
AWS_DISABLE_SSL: "true"
API_KEY_TABLE: ApiKey
WEBAUTHN_TABLE: WebAuthn
depends_on:
- dynamo
- dynamorestart
working_dir: /src
command: bash -c "echo starting server && go run ./server/"
u2fsim:
build: ./u2f-simulator
ports:
- 8080
working_dir: /src
command: bash -c "echo starting u2f server && go run ./u2fserver/"
# Create dynamodb tables and data before running the backend mfa api
dynamorestart:
build: ./dynamorestart
ports:
- 8080
environment:
AWS_ENDPOINT: dynamo:8000
AWS_DEFAULT_REGION: us-east-1
AWS_ACCESS_KEY_ID: abc123
AWS_SECRET_ACCESS_KEY: abc123
AWS_DISABLE_SSL: "true"
API_KEY_TABLE: ApiKey
WEBAUTHN_TABLE: WebAuthn
depends_on:
- dynamo
working_dir: /dynamo
command: bash -c "php restart.php"