Public Repository

Last pushed: 2 years ago
Short Description
HTTPD, SSHD and Shell-in-a-box in a single Docker Container managed by SupervisorD
Full Description

HTTPD, SSHD, Shell-in-a-box

This version has been optimized for http://cloud2.io

Docker Run

There are a few items of importance to run this image.

Ports

This image runs three different daemons and it exposes three ports:

  • 80 - httpd
  • 22 - sshd
  • 4200 - shellinabox (over http)
Environment Variables

You may change default username/password and root password using the following environment variables:

  • SHELLBOX_USER (default: shellboxuser)
  • SHELLBOX_PASSWORD (default: shellboxuser)
  • ROOT_PASSWORD (default: secret)
Run

A sample docker run command is below:

docker run -e SHELLBOX_USER=test -e SHELLBOX_PASSWORD=test -e ROOT_PASSWORD=root -p 4200:4200 -p 8888:80 -p 2222:22 cloud2/httpd-sshd

.

Docker Compose

A sample docker compose is below:

httpd_sshd:
  image: cloud2/httpd-sshd:latest
  container_name: httpd-sshd
  ports:
    - "8888:80"
    - "4200:4200"
    - "2222:22"
  volumes:
    - /tmp/htdocs:/usr/local/apache2/htdocs
  environment:
    SHELLBOX_USER: user
    SHELLBOX_PASSWORD: eE2eEM8F
    ROOT_PASSWORD: wz4Ycfyu
  mem_limit: 512m
Docker Pull Command
Owner
cloud2