From 055825666fd9bcea94a372c7cece54f868b4956c Mon Sep 17 00:00:00 2001 From: timo Date: Sat, 6 May 2017 19:10:18 +0200 Subject: [PATCH] Added instructions on how to connect --- docs/service_desc.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/service_desc.md b/docs/service_desc.md index 3a0c68a20..64115ea37 100644 --- a/docs/service_desc.md +++ b/docs/service_desc.md @@ -12,3 +12,28 @@ Here is a brief overview of what container / service does what: | clamd-mailcow | Scans attachments for viruses | | sogo-mailcow | Webmail client that handles Microsoft ActiveSync and Cal- / CardDav | | nginx-mailcow | Nginx remote proxy that handles all mailcow related HTTP / HTTPS requests | + +## Attaching a Container to your Shell + +To attach a container to your shell you can simply run + +``` +docker-compose exec $Service_Name /bin/bash +``` + +### Connecting to Services + +If you whant to connect to a service / application directly it is always a good idea to `source mailcow.conf` to get all relevant variables in your environment. + +#### MySQL + +``` +source mailcow.conf +docker-compose exec mysql-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME} +``` + +#### Redis + +``` +docker-compose exec redis-mailcow redis-cli +```