-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
97 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,103 +1,103 @@ | ||
services: | ||
testdb: | ||
image: mariadb:10 | ||
environment: | ||
MYSQL_ROOT_PASSWORD: r00tp@ss! | ||
MYSQL_DATABASE: test | ||
MYSQL_USER: idbroker | ||
MYSQL_PASSWORD: idbroker | ||
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: [email protected] | ||
HR_NOTIFICATIONS_EMAIL: [email protected] | ||
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 | ||
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: [email protected] | ||
HR_NOTIFICATIONS_EMAIL: [email protected] | ||
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" | ||
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/" | ||
# 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/" | ||
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" | ||
# 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" |