Skip to content

Commit

Permalink
fix mongodb uri var setting
Browse files Browse the repository at this point in the history
  • Loading branch information
leej3 committed Nov 13, 2024
1 parent ab0e124 commit 09d6d32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions web/deploy/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion web/deploy/terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09d6d32

Please sign in to comment.