Skip to content

Commit

Permalink
Update README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulla-ashurov committed Jun 28, 2023
1 parent 83ddea5 commit 4194601
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,21 @@ Construct the postgres URL and configure the env variables mentioned above.
Spinning up a Docker container from the [pre-built credential-service Docker image on Github](https://github.com/cheqd/credential-service/pkgs/container/credential-service) is as simple as the command below:

- Running credential-service using Docker with external database:
- Set `POSTGRES_USER`, `POSTGRES_PASSWORD` environment variables in `docker/with-external-db/.env`:
- Set `POSTGRES_USER`, `POSTGRES_PASSWORD` environment variables in `docker/with-external-db/postgres.env`:
- `POSTGRES_USER`: Postgres database username using in Docker database service.
- `POSTGRES_PASSWORD`: Postgres database password using in Docker database service.
- `POSTGRES_MULTIPLE_DATABASES`: Postgres multiple databases, e.g.: `POSTGRES_MULTIPLE_DATABASES="app,logto"`.

Run LogTo service:

```bash
docker compose -f docker/with-external-db/docker-compose-with-db.yml --profile logto up --detach
```

Run credential-service with an external database:
Run credential-service:

```bash
docker compose -f docker/with-external-db/docker-compose-with-db.yml --profile app-with-external-db up --detach
docker compose -f docker/with-external-db/docker-compose-with-db.yml --profile app up --detach
```

### Build using Docker
Expand Down

0 comments on commit 4194601

Please sign in to comment.