From 0f2c328f714b446b329ebff7a9a654a9eeb0e0fa Mon Sep 17 00:00:00 2001 From: emile Date: Wed, 20 Mar 2019 20:16:38 +0000 Subject: Update 'README.md' --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b7b9f48..14025ea 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,26 @@ Docker-container simulating the new position of a given set of stars. ## Purpose -This containers purpose is to get a star and return the position of the star after a given time delta. \ No newline at end of file +This container is there to calculate the forces acting on a star, applying the force on the star for a given amount of time and inserting the star into the next timestep. In oder to do this, the container needs information on where to get stars, where to put them and other minor informations such as credentials for the database. + +## Environment + +The container gets the important information using [Environement Variables](https://en.wikipedia.org/wiki/Environment_variable). The following environment variables can be set to define where the container accesses other services: + +| Name | Example Value | Function | +| --- | --- | --- | +| DISTRIBUTORURL | "localhost:8081" | url of the distributor distributing starIDs | +| METRICBUNDLERURL | "metrics-bundler.nbg1.emile.space" | url of the metrics-bundler used to gather metrics | +| DBURL | "postgresql.docker.localhost" | url used to access the database | +| DBUSER | "postgres" | username used to login into the database | +| DBPASSWD | "" | password used to login into the database | +| DBPORT | 5432 | port behind which the database is running | +| DBPROJECTNAME | "postgres" | name of the database | + +## usage (WIP) + +Starting a simulator can be done using docker-compose: + +```bash +$ docker-compose up -d +``` \ No newline at end of file -- cgit 1.4.1