From 09d6d32f1c13f7dc92f226a1a94da5a53d812468 Mon Sep 17 00:00:00 2001 From: leej3 Date: Wed, 13 Nov 2024 12:09:26 +0000 Subject: [PATCH] fix mongodb uri var setting --- web/deploy/docker-compose.yaml | 5 +++-- web/deploy/terraform/README.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/web/deploy/docker-compose.yaml b/web/deploy/docker-compose.yaml index 82c9e17..ef55cc0 100644 --- a/web/deploy/docker-compose.yaml +++ b/web/deploy/docker-compose.yaml @@ -4,7 +4,7 @@ services: image: "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com/api-shared:${RELEASE_TAG}" pull_policy: always environment: - - MONGODB_URI="${MONGODB_URI}" + MONGODB_URI: ${MONGODB_URI} working_dir: /app/app expose: - "80" @@ -17,6 +17,7 @@ services: - traefik.http.services.osm_web_api.loadbalancer.server.port=80 - traefik.http.routers.osm_web_api.tls=true - traefik.http.routers.osm_web_api.tls.certresolver=le + - "traefik.http.routers.osm_web_api.priority=100" # Higher priority than dashboard networks: - traefik-public restart: always @@ -36,7 +37,7 @@ services: image: "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com/dashboard-shared:${RELEASE_TAG}" pull_policy: always environment: - - MONGODB_URI="${MONGODB_URI}" + MONGODB_URI: ${MONGODB_URI} working_dir: /app labels: - traefik.enable=true diff --git a/web/deploy/terraform/README.md b/web/deploy/terraform/README.md index 5ecabdb..029ac27 100644 --- a/web/deploy/terraform/README.md +++ b/web/deploy/terraform/README.md @@ -12,7 +12,7 @@ You must set the following [repository secrets](https://github.com/nimh-dsst/osm * `AWS_ACCOUNT_ID`: The [AWS account ID](https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-identifiers.html#FindAccountId) used for the deployments * `AWS_REGION`: The AWS region where the deployments reside -* `MONGODB_URI`: The URI of the MongoDB holding the data. This variable was temperamental. Please try saving it as a secret surrounded by single quotes `'`. +* `MONGODB_URI`: The URI of the MongoDB holding the data. * `SSH_PRIVATE_KEY`: The private SSH key used to ssh into the ec2 instances * `SSH_PUBLIC_KEY`: The public SSH key used to ssh into the ec2 instances corresponding to the above private key (use `ssh-keygen -y -f