From b1fd44d80efcf97897edf2060ec7b60dfc8f80c1 Mon Sep 17 00:00:00 2001
From: Ludovic Claude <ludovic.claude54@gmail.com>
Date: Mon, 6 Nov 2017 18:15:57 +0100
Subject: [PATCH] Update doc for Docker image

---
 README.md        |  2 +-
 docker/README.md | 52 +++++++++++++++++++++++++++++++-----------------
 2 files changed, 35 insertions(+), 19 deletions(-)

diff --git a/README.md b/README.md
index 6196a1065..517d368f9 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@
 
 ## Deployment (using a Docker image)
 
-* See here: https://hub.docker.com/r/hbpmip/portal-backend/
+* See the [documentation for hbpmip/portal-backend Docker image](./docker/README.md)
 
 ## Build
 
diff --git a/docker/README.md b/docker/README.md
index 5b05a4e26..5d5234068 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -4,47 +4,63 @@
 
 ## Docker image for the MIP portal backend.
 
-To use this image, you need a running PostgreSQL database.
-You need to configure a few things using some environment variables.
+To use this image, you need a running instance of PostgreSQL and to configure the software using the following environment variables.
 
-Environment variables:
 
-* PORTAL_DB_URL: JDBC URL to connect to the portal database, for example "jdbc:postgresql://db:5432/portal".
+### DATABASES
+
+* PORTAL_DB_URL: JDBC URL to connect to the portal database, default value is "jdbc:postgresql://172.22.0.1:5432/portal".
 * PORTAL_DB_SCHEMA: Database schema, default value is "public".
-* PORTAL_DB_SERVER: optional, address of the portal database server, for example DB_SERVER="db:5432". Used to wait for the database to be up and running.
-* PORTAL_DB_USER: User to use when connecting to the portal database.
+* PORTAL_DB_USER: User to use when connecting to the portal database, default value is "postgres".
 * PORTAL_DB_PASSWORD: Password to use when connecting to the portal database.
 
-* META_DB_URL: JDBC URL to connect to the metadata database.
+* META_DB_URL: JDBC URL to connect to the metadata database, default value is "jdbc:postgresql://172.22.0.1:5432/meta".
 * META_DB_SCHEMA: Database schema, default value is "public".
-* META_DB_SERVER: optional, address of the metadata database server. Used to wait for the database to be up and running.
 * META_DB_USER: User to use when connecting to the metadata database.
 * META_DB_PASSWORD: Password to use when connecting to the metadata database.
 
-* FEATURES_DB_URL: JDBC URL to connect to the features database.
+* FEATURES_DB_URL: JDBC URL to connect to the science database, default value is "jdbc:postgresql://172.22.0.1:5433/features".
 * FEATURES_DB_SCHEMA: Database schema, default value is "public".
-* FEATURES_DB_SERVER: optional, address of the features database server. Used to wait for the database to be up and running.
-* FEATURES_DB_USER: User to use when connecting to the features database.
-* FEATURES_DB_PASSWORD: Password to use when connecting to the features database.
+* FEATURES_DB_USER: User to use when connecting to the science database, default value is "postgres".
+* FEATURES_DB_PASSWORD: Password to use when connecting to the science database.
 * FEATURES_DB_MAIN_TABLE: Table that contains the scientific data to use, default value is "features".
 
-* CONTEXT_PATH:  context path appended to all services running in this container. Default to "/services".
 
-* AUTHENTICATION: 0 to disable authentication or 1 to enable authentication.
+### OAUTH2 LOGIN
+
+* AUTHENTICATION: "0" to disable authentication or "1" to enable authentication, default value is "1".
 * CLIENT_ID: required when authentication is turned on, client ID for the [OpenID server of HBP](https://services.humanbrainproject.eu/oidc/).
 * CLIENT_SECRET: required when authentication is turned on, client secret for the [OpenID server of HBP](https://services.humanbrainproject.eu/oidc/).
 * TOKEN_URI: default to "https://services.humanbrainproject.eu/oidc/token".
 * AUTH_URI: default to "https://services.humanbrainproject.eu/oidc/authorize".
 * USER_INFO_URI: default to "https://services.humanbrainproject.eu/oidc/userinfo".
+* REVOKE_TOKEN_URI "https://services.humanbrainproject.eu/oidc/slo".
+
+
+### WEB FRONTEND
 
 * FRONTEND_LOGIN_URL: URL to redirect to when login is required. Default to "http://frontend/services/login/hbp".
 * FRONTEND_AFTER_LOGIN_URL: URL to redirect after login. Default to "http://frontend/home".
 * FRONTEND_AFTER_LOGOUT_URL: URL to redirect to after logout. Default to "http://frontend/services/login/hbp".
 
-* WOKEN_URL: URL to woken machine learning server.
-* EXAREME_URL: URL to Exareme server.
 
-* LOGGING_LEVEL_WEB: log level for the web layer of the application. Default to "DEBUG".
-* LOGGING_LEVEL_HIBERNATE: log level for the Hibernate layer of the application. Default to "DEBUG".
+### LOGGING
+
+* LOGGING_LEVEL_WEB: log level for the web layer of the application. Default to "WARN".
+* LOGGING_LEVEL_HIBERNATE: log level for the Hibernate layer of the application. Default to "WARN".
+
 
+### ENDPOINTS
+
+* WOKEN_URL: URL to woken machine learning server, default value is "http://172.22.0.1:8087".
+* WOKEN_HOST: default value is "woken".
+* WOKEN_AKKA_PORT default value is "8088".
+* WOKEN_AKKA_PATH default value is "/user/entrypoint".
+
+* EXAREME_URL: URL to Exareme server, default value is "http://hbps2.chuv.ch:9090".
+
+
+### EMBEDDED SERVER CONFIGURATION
+
+* CONTEXT_PATH:  context path appended to all services running in this container. Default to "/services".
 * SESSION_TIMEOUT: Timeout in milliseconds for session expiration. Default to 2592000.
-- 
GitLab