Skip to content

Commit

Permalink
connect auth to db
Browse files Browse the repository at this point in the history
  • Loading branch information
MalinAhlberg committed Nov 7, 2024
1 parent 9914c0f commit cde6781
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ services:
container_name: auth
command: sda-auth
image: ghcr.io/neicnordic/sensitive-data-archive:v0.3.25
networks:
- secure
depends_on:
credentials:
condition: service_completed_successfully
postgres:
condition: service_healthy
environment:
- OIDC_ID=${auth_ELIXIR_ID}
- OIDC_PROVIDER=http://${DOCKERHOST:-localhost}:8080/oidc/
Expand All @@ -37,6 +41,8 @@ services:
- OIDC_REDIRECTURL=http://localhost:8085/oidc/login
- LOG_LEVEL=debug
- RESIGNJWT=false
- DB_PASSWORD=${auth_DB_PASSWORD}
- DB_USER=${auth_DB_USER}
extra_hosts:
- ${DOCKERHOST:-localhost}:host-gateway
volumes:
Expand Down
2 changes: 1 addition & 1 deletion scripts/make_credentials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ apt-get -o DPkg::Lock::Timeout=60 install -y curl jq postgresql-client openssl >
pip install --upgrade pip > /dev/null
pip install aiohttp Authlib joserfc requests > /dev/null

for n in download finalize inbox ingest mapper sync verify; do
for n in api auth download finalize inbox ingest mapper sync verify; do
echo "creating credentials for: $n"
## password and permissions for MQ
body_data=$(jq -n -c --arg password "$n" --arg tags none '$ARGS.named')
Expand Down

0 comments on commit cde6781

Please sign in to comment.