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 8e9996b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

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

services:
# Docs: https://github.com/nginx-proxy/nginx-proxy
nginx-proxy:
image: nginxproxy/nginx-proxy:alpine
networks:
- trusted-contract-main
- trusted-contract-mongo
ports:
- "80:80"
- "443:443"
Expand All @@ -34,6 +36,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 8e9996b

Please sign in to comment.