Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.
/ docker-bastion Public archive

Docker bastion image with an SSH server and MySQL client installed.

License

Notifications You must be signed in to change notification settings

meanbee/docker-bastion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Bastion

This repository contains a container that allows us to provide temporary SSH access to an environment. The image contains an SSH server and a MySQL client, allowing third parties to diagnose and debug problems safely in our environment.

Usage

You could launch it as a stand alone instance on the server:

docker run -e SSH_PASSWORD=shU3a2KnRv1n0LPNz \
    -d -P \
    --volume /example/directory/to/share:/shared/example-directory \
    --link database \
    meanbee/bastion

Or you could add it to your docker-compose configuration:

bastion:
    image: meanbee/bastion
    environment:
        - SSH_PASSWORD=shU3a2KnRv1n0LPNz
    volumes:
        - /example/directory/to/share:/shared/example-directory
    links:
        - database
    expose:
        - 22

You can SSH into the container using the published port and the bastion user with the provided password.

Environment variables

SSH_PASSWORD

Required. Sets the password for the bastion user.

SSH_HOME_DIR

Optional. Sets the home directory for the bastion user.

About

Docker bastion image with an SSH server and MySQL client installed.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages