Skip to content

Commit

Permalink
consistent use of maps for docker-compose environment
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed May 27, 2024
1 parent 396639b commit a07e5a8
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 63 deletions.
64 changes: 32 additions & 32 deletions actions-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ services:
- pwmanager.local
- test-browser
environment:
- MYSQL_HOST=db
- MYSQL_DATABASE=silauth
- MYSQL_USER=silauth
- MYSQL_PASSWORD=silauth
- PROFILE_URL_FOR_TESTS=http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub
- ADMIN_EMAIL=[email protected]
- ADMIN_PASS=b
- SECRET_SALT=abc123
- IDP_NAME=x
MYSQL_HOST: db
MYSQL_DATABASE: silauth
MYSQL_USER: silauth
MYSQL_PASSWORD: silauth
PROFILE_URL_FOR_TESTS: http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub
ADMIN_EMAIL: [email protected]
ADMIN_PASS: b
SECRET_SALT: abc123
IDP_NAME: x
volumes:
- ./dockerbuild/run-integration-tests.sh:/data/run-integration-tests.sh
- ./dockerbuild/run-metadata-tests.sh:/data/run-metadata-tests.sh
Expand Down Expand Up @@ -210,13 +210,13 @@ services:
- ./development/sp2-local/metadata/saml20-idp-remote.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php

environment:
- ADMIN_EMAIL=[email protected]
- ADMIN_PASS=sp2
- SECRET_SALT=h57fjemb&dn^nsJFGNjweJz2
- SECURE_COOKIE=false
- SHOW_SAML_ERRORS=true
- SAML20_IDP_ENABLE=false
- ADMIN_PROTECT_INDEX_PAGE=false
ADMIN_EMAIL: [email protected]
ADMIN_PASS: sp2
SECRET_SALT: h57fjemb&dn^nsJFGNjweJz2
SECURE_COOKIE: false
SHOW_SAML_ERRORS: true
SAML20_IDP_ENABLE: false
ADMIN_PROTECT_INDEX_PAGE: false

ssp-sp3.local:
build: .
Expand All @@ -232,13 +232,13 @@ services:
- ./development/sp3-local/metadata/saml20-idp-remote.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php

environment:
- ADMIN_EMAIL=[email protected]
- ADMIN_PASS=sp3
- SECRET_SALT=h57fjemb&dn^nsJFGNjweJz3
- SECURE_COOKIE=false
- SHOW_SAML_ERRORS=true
- SAML20_IDP_ENABLE=false
- ADMIN_PROTECT_INDEX_PAGE=false
ADMIN_EMAIL: [email protected]
ADMIN_PASS: sp3
SECRET_SALT: h57fjemb&dn^nsJFGNjweJz3
SECURE_COOKIE: false
SHOW_SAML_ERRORS: true
SAML20_IDP_ENABLE: false
ADMIN_PROTECT_INDEX_PAGE: false


pwmanager.local:
Expand All @@ -253,15 +253,15 @@ services:
# Utilize custom metadata
- ./development/sp-local/metadata/saml20-idp-remote.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php
environment:
- ADMIN_EMAIL=[email protected]
- ADMIN_PASS=sp1
- IDP_NAME=THIS VARIABLE IS REQUIRED BUT PROBABLY NOT USED
- SECRET_SALT=NOT-a-secret-k49fjfkw73hjf9t87wjiw
- SECURE_COOKIE=false
- SHOW_SAML_ERRORS=true
- SAML20_IDP_ENABLE=false
- ADMIN_PROTECT_INDEX_PAGE=false
- THEME_USE=default
ADMIN_EMAIL: [email protected]
ADMIN_PASS: sp1
IDP_NAME: THIS VARIABLE IS REQUIRED BUT PROBABLY NOT USED
SECRET_SALT: NOT-a-secret-k49fjfkw73hjf9t87wjiw
SECURE_COOKIE: false
SHOW_SAML_ERRORS: true
SAML20_IDP_ENABLE: false
ADMIN_PROTECT_INDEX_PAGE: false
THEME_USE: default

# the broker and brokerDb containers are used by the silauth module
broker:
Expand Down
62 changes: 31 additions & 31 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ services:
- pwmanager.local
- test-browser
environment:
- MYSQL_HOST=db
- MYSQL_DATABASE=silauth
- MYSQL_USER=silauth
- MYSQL_PASSWORD=silauth
- COMPOSER_CACHE_DIR=/composer
- PROFILE_URL_FOR_TESTS=http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub
- ADMIN_EMAIL=[email protected]
- ADMIN_PASS=b
- SECRET_SALT=abc123
- IDP_NAME=x
MYSQL_HOST: db
MYSQL_DATABASE: silauth
MYSQL_USER: silauth
MYSQL_PASSWORD: silauth
COMPOSER_CACHE_DIR: /composer
PROFILE_URL_FOR_TESTS: http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub
ADMIN_EMAIL: [email protected]
ADMIN_PASS: b
SECRET_SALT: abc123
IDP_NAME: x
volumes:
- ./composer.json:/data/composer.json
- ./composer.lock:/data/composer.lock
Expand Down Expand Up @@ -79,7 +79,7 @@ services:
env_file:
- ./local.env
environment:
- COMPOSER_CACHE_DIR=/composer
COMPOSER_CACHE_DIR: /composer

ssp-hub.local:
build: .
Expand Down Expand Up @@ -342,13 +342,13 @@ services:
env_file:
- local.env
environment:
- ADMIN_EMAIL=[email protected]
- ADMIN_PASS=sp3
- SECRET_SALT=h57fjemb&dn^nsJFGNjweJz3
- SECURE_COOKIE=false
- SHOW_SAML_ERRORS=true
- SAML20_IDP_ENABLE=false
- ADMIN_PROTECT_INDEX_PAGE=false
ADMIN_EMAIL: [email protected]
ADMIN_PASS: sp3
SECRET_SALT: h57fjemb&dn^nsJFGNjweJz3
SECURE_COOKIE: false
SHOW_SAML_ERRORS: true
SAML20_IDP_ENABLE: false
ADMIN_PROTECT_INDEX_PAGE: false

pwmanager.local:
image: silintl/ssp-base:develop
Expand All @@ -364,15 +364,15 @@ services:
ports:
- "8084:80"
environment:
- ADMIN_EMAIL=[email protected]
- ADMIN_PASS=sp1
- IDP_NAME=THIS VARIABLE IS REQUIRED BUT PROBABLY NOT USED
- SECRET_SALT=NOT-a-secret-k49fjfkw73hjf9t87wjiw
- SECURE_COOKIE=false
- SHOW_SAML_ERRORS=true
- SAML20_IDP_ENABLE=false
- ADMIN_PROTECT_INDEX_PAGE=false
- THEME_USE=default
ADMIN_EMAIL: [email protected]
ADMIN_PASS: sp1
IDP_NAME: THIS VARIABLE IS REQUIRED BUT PROBABLY NOT USED
SECRET_SALT: NOT-a-secret-k49fjfkw73hjf9t87wjiw
SECURE_COOKIE: false
SHOW_SAML_ERRORS: true
SAML20_IDP_ENABLE: false
ADMIN_PROTECT_INDEX_PAGE: false
THEME_USE: material:material

# the broker and brokerDb containers are used by the silauth module
broker:
Expand Down Expand Up @@ -429,10 +429,10 @@ services:
depends_on:
- dynamo
environment:
- AWS_ACCESS_KEY_ID=0
- AWS_SECRET_ACCESS_KEY=0
- AWS_DEFAULT_REGION=us-east-1
- AWS_DYNAMODB_ENDPOINT=http://dynamo:8000
AWS_ACCESS_KEY_ID: 0
AWS_SECRET_ACCESS_KEY: 0
AWS_DEFAULT_REGION: us-east-1
AWS_DYNAMODB_ENDPOINT: http://dynamo:8000

node:
image: node:lts-alpine
Expand Down

0 comments on commit a07e5a8

Please sign in to comment.