Skip to content

Commit 07082f4

Browse files
authored
Merge pull request #422 from eisbilir/fix/local-deploy
fix: local config
2 parents c38ce83 + 29ee949 commit 07082f4

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ web_modules/
7474
# dotenv environment variables file
7575
.env
7676
.env.test
77+
taas-es-processor.env
7778

7879
# parcel-bundler cache (https://parceljs.org/)
7980
.cache

README.md

+15-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,21 @@
4949
BUSAPI_URL=http://dockerhost:8002/v5
5050
```
5151

52-
- Values from this file would be automatically used by many `npm` commands.
52+
1. In the `./local` folder create `taas-es-processor.env` file with the next environment variables.<br>
53+
54+
```bash
55+
# Auth0 config
56+
AUTH0_URL=
57+
AUTH0_AUDIENCE=
58+
AUTH0_CLIENT_ID=
59+
AUTH0_CLIENT_SECRET=
60+
# Locally deployed services (via docker-compose)
61+
KAFKA_URL=kafka:9093
62+
ES_HOST=http://elasticsearch:9200
63+
BUSAPI_URL=http://tc-bus-api:8002/v5
64+
```
65+
66+
- Values from these file would be automatically used by many `npm` commands.
5367
- ⚠️ Never commit this file or its copy to the repository!
5468

5569
1. Set `dockerhost` to point the IP address of Docker. Docker IP address depends on your system. For example if docker is run on IP `127.0.0.1` add a the next line to your `/etc/hosts` file:
@@ -223,7 +237,6 @@ To be able to change and test `taas-es-processor` locally you can follow the nex
223237
| `npm run demo-payment-scheduler` | Create 1000 Work Periods Payment records in with status "scheduled" and various "amount" |
224238
| `npm run emsi-mapping` | mapping EMSI tags to topcoder skills |
225239
226-
227240
## Import and Export data
228241
229242
### 📤 Export data

local/docker-compose.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ services:
5858
depends_on:
5959
- kafka-client
6060
- elasticsearch
61-
environment:
62-
- KAFKA_URL=kafka:9093
63-
- ES_HOST=http://elasticsearch:9200
61+
env_file:
62+
- taas-es-processor.env
6463

6564
tc-bus-api:
6665
container_name: tc-bus-api

0 commit comments

Comments
 (0)