From 3ecece48ff84911bd6d6d85d6554fb71bfbc5a5c Mon Sep 17 00:00:00 2001 From: Wolfgang Steuer Date: Fri, 22 Nov 2019 13:38:32 +0100 Subject: [PATCH] tmux console fixes --- README.md | 5 ++++- docker-compose.yml | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 98ae30342..e63a53486 100755 --- a/README.md +++ b/README.md @@ -100,7 +100,10 @@ Use [mysqltuner.pl](http://mysqltuner.pl "MySQL tuner - Use it!") for recommenda docker-compose up -d nn-tmux-ui # check the monitor tmux docker exec -it nn-tmux-ui bash - root@:/var/www/NNTmux# sudo -E -u notroot tmux attach + # attach + root@:/var/www/NNTmux# sudo -E -u notroot tmux attach -d + # stop + root@:/var/www/NNTmux# sudo -E -u notroot php artisan tmux-ui:stop --kill ``` ### Support diff --git a/docker-compose.yml b/docker-compose.yml index 823f43fe8..cd9511833 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -49,6 +49,11 @@ services: container_name: nn-tmux-ui stdin_open: true tty: true + environment: + MYSQL_ROOT_PASSWORD: ilmdvV8H + TZ: ${APP_TZ} + COLUMNS: "`tput cols`" + LINES: "`tput lines`" command: sudo -E -u notroot php artisan tmux-ui:start ports: - 127.0.0.1:12345:12345 \ No newline at end of file