Commit 698deec2 authored by thomas Bousselin's avatar thomas Bousselin
Browse files

feat: easy stellio configuration

parent 877adcac
Loading
Loading
Loading
Loading

plug-test/.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
**/.env
 No newline at end of file

plug-test/README.md

0 → 100644
+23 −0
Original line number Diff line number Diff line
# PLUG TEST Configuration

You can found a docker compose for easy launching of : orion-ld, scorpio and stellio in their respective directory.

you will need to define the following environment variable before launching the docker compose :
- PORT : the port behind which the broker will be deployed
- DB_PORT : the port behind which the database will be deployed
- SUFFIX : an addition to tha name of the container to easily deploy multiple instances.

then you can launch the docker compose 
```
cd plug-test
cd stellio
PORT=8080 DB_PORT=5432 SUFFIX="-1" docker compose -p first_broker  up
```
if you prefer using an .env file or you are a windows user you can use the .example.env file to set the variable instead.

by changing the variables you can easilly launch a second instance of a broker 
```
cd plug-test
cd stellio
PORT=8081 DB_PORT=5433 SUFFIX="-2" docker compose -p second_broker  up
```
 No newline at end of file
+4 −0
Original line number Diff line number Diff line
# copy me in a .env file to configure the docker compose
DB_PORT=27017
PORT=1026
SUFFIX=-1
 No newline at end of file
+4 −0
Original line number Diff line number Diff line
# copy me in a .env file to configure the docker compose
DB_PORT=1111
PORT=5432
SUFFIX=-1
 No newline at end of file
+0 −15
Original line number Diff line number Diff line
# use this file with : docker compose --env-file .env --env-file .context-source.env -p stellio-context-source up
API_GATEWAY_PORT=8090
KAFKA_PORT=29093
POSTGRES_PORT=5433
SEARCH_SERVICE_PORT=8093
SUBSCRIPTION_SERVICE_PORT=8094

# Used by subscription service when searching entities for recurring subscriptions
# (those defined with a timeInterval parameter)
SUBSCRIPTION_ENTITY_SERVICE_URL=http://search-service:8093

# Used as a base URL by subscription service when serving contexts for notifications
SUBSCRIPTION_STELLIO_URL=http://localhost:8090

CONTAINER_NAME_PREFIX=context-source-
Loading