From 4d5e3e5e4a11b85663b936bd60b7d3006ffb3e31 Mon Sep 17 00:00:00 2001 From: philtrep Date: Mon, 24 Oct 2016 16:11:52 -0400 Subject: [PATCH] Added Documentation for using ssh on workspace --- README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b334ef8..53b6080 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ It's like Laravel Homestead but for Docker instead of Vagrant. - [List current running Containers](#List-current-running-Containers) - [Close all running Containers](#Close-all-running-Containers) - [Delete all existing Containers](#Delete-all-existing-Containers) - - [Enter a Container (SSH into a running Container)](#Enter-Container) + - [Enter a Container (run commands in a running Container)](#Enter-Container) - [Edit default container configuration](#Edit-Container) - [Edit a Docker Image](#Edit-a-Docker-Image) - [Build/Re-build Containers](#Build-Re-build-Containers) @@ -63,6 +63,7 @@ It's like Laravel Homestead but for Docker instead of Vagrant. - [Misc](#Misc) - [Change the timezone](#Change-the-timezone) - [Cron jobs](#CronJobs) + - [Access workspace via ssh](#Workspace-ssh) - [MySQL access from host](#MySQL-access-from-host) - [Use custom Domain](#Use-custom-Domain) - [Enable Global Composer Build Install](#Enable-Global-Composer-Build-Install) @@ -388,7 +389,7 @@ docker-compose down
-### Enter a Container (SSH into a running Container) +### Enter a Container (run commands in a running Container) 1 - first list the current running containers with `docker ps` @@ -1023,6 +1024,20 @@ You can add your cron jobs to `workspace/crontab/root` after the `php artisan` l Make sure you [change the timezone](#Change-the-timezone) if you don't want to use the default (UTC). + +### Access workspace via ssh + +You can access the `workspace` container through `localhost:2222` by setting the `INSTALL_WORKSPACE_SSH` build argument to `true`. + +To change the default forwarded port for ssh: + +```yml + workspace: + ports: + - "2222:22" # Edit this line + ... +``` + ### MySQL access from host