Skip to content

Commit

Permalink
feat: add docker deployment for mongodb api
Browse files Browse the repository at this point in the history
  • Loading branch information
billguo99 committed Aug 14, 2023
1 parent 75f2ff4 commit b9bf5be
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

networks:
trusted-contract-main:
trusted-contract-mongo:

services:
# Docs: https://github.com/nginx-proxy/nginx-proxy
Expand Down Expand Up @@ -34,6 +35,23 @@ services:
expose:
- "8080"

trusted-contract-mongo-api:
image: ghcr.io/ntls-io/trusted-contract-mongodb-api:main
environment:
VIRTUAL_HOST: trusted-contract-mongo-api.ntls.io
VIRTUAL_PATH: /
BIND_ADDR: "0.0.0.0:8000"
CERT_NAME: ntls-api

PRIMARY_ORIGIN: "https://trusted-contract-mongo-api.ntls.io"
STAGING_MODE: 1
WALLET_DB_CONNECTION_STRING: ${TRUSTED_CONTRACT_DB_CONNECTION_STRING}
WALLET_DB_NAME: ${TRUSTED_CONTRACT_DB_NAME}
networks:
- trusted-contract-mongo
init: true
expose:
- "8000"

volumes:
trusted-contract-store-main:

0 comments on commit b9bf5be

Please sign in to comment.