From 0f0a9291ebcdfe2c8c251cb31f70061bd9af8106 Mon Sep 17 00:00:00 2001
From: Bastien Dumont <bdumont@grandlyon.com>
Date: Mon, 18 Mar 2024 15:40:11 +0000
Subject: [PATCH] update environments

---
 docs/ecolyo/Technical/environments.md | 26 +++++++++++++++++---------
 1 file changed, 17 insertions(+), 9 deletions(-)

diff --git a/docs/ecolyo/Technical/environments.md b/docs/ecolyo/Technical/environments.md
index 3b95736..647eef8 100644
--- a/docs/ecolyo/Technical/environments.md
+++ b/docs/ecolyo/Technical/environments.md
@@ -2,28 +2,36 @@
 
 We have 2 environments available for this project:
 
-- A dev environment hosted on scaleway and managed by the dev team
-- A prod environment hosted on Cozy and managed by Cozy
+- A **prod** environment hosted on Cozy and managed by Cozy
+- A **dev** environment hosted on scaleway and managed by the dev team
 
 ## Dev environment aka alpha
 
-The dev environment has been mounted on a dedicated instance on scaleway.
-
-### Access to the dev environment
-
 You need to install an ssh tool like Putty or [MobaXterm](https://mobaxterm.mobatek.net/download.html) in order to connect to the server.
 Connection to the server is made using ssh key, you need to generate your own and ask administrator to allow your ssh key.
 Once done, you should be able to connect to the server using your private key.
 
-#### CouchDB
+### CouchDB from Alpha
 
-To connect to the database from your local computer, you can run the following command to create a SSH tunnel with local port forwarding :
+To connect to the database from your local computer, you need to create an SSH tunnel and forward ports to your local machine :
 
 ```console
 ssh root@51.158.104.84 -L 8082:localhost:5984
 ```
 
-Then you can browse to [http://localhost:8082/\_utils/](http://localhost:8082/_utils/) and enter the credentials specified in the file easy-cozy/docker-compose.yml
+Then you can browse to [http://localhost:8082/\_utils/](http://localhost:8082/_utils/) and enter the credentials specified in the file `easy-cozy/docker-compose.yml`
+
+#### Access data from an instance
+
+The DB contains tables for each instance. They all are prefixed with a hash. To see instances hashes, search for `global/instances` you will find documents containing `domains` & `prefix`.
+
+The **prefix** will allow you to search for specific tables among the instances.
+
+:::note Example
+
+`cozyc5eac7b18cb26075ac6aa8233748dfd2/com-grandlyon-ecolyo-profile`
+
+:::
 
 ### Cozy stack
 
-- 
GitLab