From 6d96be8f86ffaa21fe8153fe8b014f7437672f08 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Pailharey?= <rpailharey@grandlyon.com>
Date: Tue, 6 Dec 2022 11:19:00 +0100
Subject: [PATCH] doc: couchDB SSH tunnel command

---
 docs/ecolyo/project_architecture/environments.md | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/docs/ecolyo/project_architecture/environments.md b/docs/ecolyo/project_architecture/environments.md
index 1558fe2..ddc7531 100644
--- a/docs/ecolyo/project_architecture/environments.md
+++ b/docs/ecolyo/project_architecture/environments.md
@@ -15,6 +15,13 @@ You need to install an ssh tool like Putty or [MobaXterm](https://mobaxterm.moba
 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
+To connect to the database from your local computer, you can run the following command to create a SSH tunnel with local port forwarding :
+```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
+
 ### Cozy stack
 
 It is based on the easy-cozy project available on [Gitlab](https://forge.grandlyon.com/pocs/cozy/easy-cozy)
-- 
GitLab