Replaced exec commands, added info

master
andryyy 2016-12-14 16:40:10 +01:00
parent 1d190c4553
commit 949c3be5c8
1 changed files with 9 additions and 9 deletions

View File

@ -51,7 +51,7 @@ If you want to use Rspamds web UI, you need to set a Rspamd controller password:
``` ```
# Generate hash # Generate hash
docker exec -it rspamd-mailcow rspamadm pw docker-compose exec rspamd-mailcow rspamadm pw
``` ```
Replace given hash in data/conf/rspamd/override.d/worker-controller.inc: Replace given hash in data/conf/rspamd/override.d/worker-controller.inc:
@ -126,19 +126,19 @@ You can use docker logs $name for almost all containers. Only rmilter does not l
Connect to MariaDB database: Connect to MariaDB database:
``` ```
source mailcow.conf source mailcow.conf
docker exec -it mariadb-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME} docker-compose exec mariadb-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME}
``` ```
Init schema (will be auto-installed by mailcow UI, but just in case...): Init schema (will be auto-installed by mailcow UI, but just in case...):
``` ```
source mailcow.conf source mailcow.conf
docker exec -it mariadb-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME} < data/web/inc/init.sql docker-compose exec mariadb-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME} < data/web/inc/init.sql
``` ```
Reset mailcow admin to `admin:moohoo`: Reset mailcow admin to `admin:moohoo`:
``` ```
source mailcow.conf source mailcow.conf
docker exec -it mariadb-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME} -e "DROP TABLE admin; DROP TABLE domain_admins" docker-compose exec mariadb-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME} -e "DROP TABLE admin; DROP TABLE domain_admins"
# Open mailcow UI to auto-init the db # Open mailcow UI to auto-init the db
``` ```
@ -147,7 +147,7 @@ Backup and restore database:
source mailcow.conf source mailcow.conf
# Create # Create
DATE=$(date +"%Y%m%d_%H%M%S") DATE=$(date +"%Y%m%d_%H%M%S")
docker exec -it mariadb-mailcow /bin/bash mysqldump --default-character-set=utf8mb4 -u${DBUSER} -p${DBPASS} ${DBNAME} > backup_${DBNAME}_${DATE}.sql docker-compose exec mariadb-mailcow mysqldump --default-character-set=utf8mb4 -u${DBUSER} -p${DBPASS} ${DBNAME} > backup_${DBNAME}_${DATE}.sql
# Restore # Restore
docker exec -i mariadb-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME} < ${1} docker exec -i mariadb-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME} < ${1}
``` ```
@ -156,21 +156,21 @@ docker exec -i mariadb-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME} < ${1}
Connect to redis key store: Connect to redis key store:
``` ```
docker exec -it redis-mailcow /bin/bash -c "redis-cli" docker-compose exec redis-mailcow redis-cli
``` ```
### Use rspamadm: ### Use rspamadm:
``` ```
docker exec -it rspamd-mailcow rspamadm --help docker-compose exec rspamd-mailcow rspamadm --help
``` ```
### Use rspamc: ### Use rspamc:
``` ```
docker exec -it rspamd-mailcow rspamc --help docker-compose exec rspamd-mailcow rspamc --help
``` ```
### Use doveadm: ### Use doveadm:
``` ```
docker exec -it dovecot-mailcow doveadm docker-compose exec dovecot-mailcow doveadm
``` ```
### Remove persistent data ### Remove persistent data