about summary refs log tree commit diff
diff options
context:
space:
mode:
authoremile <hanemile@protonmail.com>2019-03-20 20:16:38 +0000
committeremile <hanemile@protonmail.com>2019-03-20 20:16:38 +0000
commit0f2c328f714b446b329ebff7a9a654a9eeb0e0fa (patch)
treeed2c5915e2875419362fab358c71add86cc5a67f
parent4c7b52590ba57c20d20852613fd8a4dbf33106d0 (diff)
Update 'README.md' HEAD main
-rw-r--r--README.md24
1 files changed, 23 insertions, 1 deletions
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