A minimal configuration to set up a docker with SSH access + LAMP How to Use: Modify Dockerfile to set up password for SSH Execute: docker-compose up -d (remove -d for foreground mode) Log into server: ssh root@localhost -p 2022 Set up root password for mysql: mysqladmin -u root password '<NEW_PASSWORD>'