-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(docker): Create Docker Compose file for local setup WITHOUT usi…
…ng Postgres/LogTo [DEV-2681] (#250) * Add RUN command for migrating. * Update package-lock.json * Create docker-compose.yml file for running locally without using Postgres/LogTo. * Add a new command using for docker-compose. * Update Dockerfile and docker-compose.yml. * Add start and stop docker compose scripts. * Update start-compose.sh. * Move Dockerfile and docker-compose.yml to "docker" directory. * Remove unused environment variables. * Update docker-compose.yml. * Remove start-compose and stop-compose scripts. * Update .env.example. * Update README.md. * Update build.yml. * Update README.md. * Fix typo in README.md. * Update .env.example and docker-compose.yml files. * Update README.md. * Update docker-compose.yml. * Update Dockerfile and docker-compose.yml. * Update Dockerfile. * Remove unused ENV variables from Dockerfile. * Update README.md. * Add 2 profiles option(credential-service and credential-service-with-external-db) to docker-compose.yml. * Update README.md. * Change docker image in docker-compose.yml. * Change Docker service port from "8787" to "3000". * bump deps * Delete custom_button.js * Move Swagger file * Update package-lock.json * Update Dockerfile * No DB * checkin compose * Update docker-compose-no-db.yml * more compose * Fix problem with an invalid path to swagger.json. * Fix bug with an incorrect logic of ENABLE_EXTERNAL_DB toggle. * Update .env.no-db file. * Change the app image to an existing image. * Update package.json. * Update comment in docker-compose-no-db.yml. * Rename environment variables * Move Swagger back to top level * Remove unnecessary NPM commands * Update app.ts * Set image to latest * Rename with DB file * Update .env.no-db * Change guards * Bump package * Change env file name * Rename example ENV * Update .gitignore * Fix problem with an invalid path to swagger.json. * Update .dockerignore * Update build.yml * Downgrade did-provider-cheqd package * Update package-lock.json * downgrade did-provider-cheqd again * Set default for ENABLE variables * Update package.json * Update package-lock.json * Move files * Update package-lock.json * Checkin new folder structure * Update package.json and package-lock.json files. * Merge branch 'develop' into DEV-2681 * Bump package * Fix paths * Move files around * Fix folder includes in tsconfig * Move files around * convert to typescript * Fix TypeScript paths * Update package.json * Remove includes * Update Dockerfile * Revert "Update Dockerfile" This reverts commit 481149c. * Fix missing env * Update README.md --------- Co-authored-by: DaevMithran <61043607+DaevMithran@users.noreply.github.com> Co-authored-by: Ankur Banerjee <ankurdotb@users.noreply.github.com>
- Loading branch information
1 parent
17c60db
commit 79d5cce
Showing
23 changed files
with
267 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: '3.8' | ||
|
||
# CAUTION: Please ensure you edit necessary values in .env.no-db before using this Docker Compose file. | ||
|
||
# SYNTAX: docker compose -f docker/docker-compose-no-db.yml up --detach | ||
|
||
services: | ||
app: | ||
image: ghcr.io/cheqd/credential-service:latest | ||
ports: | ||
- 3000:3000 | ||
env_file: | ||
- no-db.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
MAINNET_RPC_URL="https://rpc.cheqd.net:443" | ||
TESTNET_RPC_URL="https://rpc.cheqd.network:443" | ||
RESOLVER_URL="https://resolver.cheqd.net/1.0/identifiers/" | ||
APPLICATION_BASE_URL="http://localhost:3000" | ||
ALLOWED_ORIGINS="http://localhost:3000" | ||
|
||
# Database | ||
ENABLE_EXTERNAL_DB="false" | ||
|
||
# Authentication | ||
ENABLE_AUTHENTICATION="false" | ||
|
||
# verida | ||
ENABLE_VERIDA_CONNECTOR="false" | ||
VERIDA_PRIVATE_KEY="akjvncanv....avoa" | ||
POLYGON_PRIVATE_KEY="alnvca...dvncioa" | ||
VERIDA_NETWORK="testnet" | ||
|
||
# Standalone install (no external DB for KMS) | ||
ISSUER_PUBLIC_KEY_HEX="alnvca...dvncioa" | ||
ISSUER_PRIVATE_KEY_HEX="akjvncanv....avoa" | ||
ISSUER_DID="did:cheqd:testnet:afcnoa...adv" | ||
DEFAULT_FEE_PAYER_MNEMONIC="sketch mountain ....." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
version: '3.8' | ||
|
||
# CAUTION: Please ensure you edit necessary values in .env before using this Docker Compose file. | ||
|
||
# SYNTAX: docker compose -f docker/docker-compose.yml up --detach | ||
|
||
services: | ||
app: | ||
image: ghcr.io/cheqd/credential-service:latest | ||
depends_on: | ||
postgres: | ||
condition: service_healthy | ||
ports: | ||
- 3000:3000 | ||
env_file: | ||
- .env.with-db | ||
|
||
app-migrations: | ||
image: ghcr.io/cheqd/credential-service:latest | ||
depends_on: | ||
postgres: | ||
condition: service_healthy | ||
ports: | ||
- 3000:3000 | ||
env_file: | ||
- .env.with-db | ||
entrypoint: [ "npm", "run", "migrate", "&&", "npm", "run", "start" ] | ||
profiles: | ||
- setup | ||
|
||
logto: | ||
image: ghcr.io/cheqd/creds-auth:latest | ||
ports: | ||
- 3001:3001 | ||
- 3002:3002 | ||
env_file: | ||
- .env | ||
profiles: | ||
- logto | ||
|
||
logto-migrations: | ||
image: ghcr.io/cheqd/creds-auth:latest | ||
ports: | ||
- 3001:3001 | ||
- 3002:3002 | ||
env_file: | ||
- .env | ||
entrypoint: [ "npm", "run", "migrate", "&&", "npm", "run", "seed" ] | ||
profiles: | ||
- setup | ||
- logto | ||
|
||
postgres: | ||
image: postgres | ||
user: postgres | ||
ports: | ||
- 5432:5432 | ||
env_file: | ||
- .env | ||
healthcheck: | ||
test: [ "CMD-SHELL", "pg_isready" ] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
profiles: | ||
- external-kms | ||
- logto |
Oops, something went wrong.