- 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>'
Dockerfile
to set up password for SSHdocker-compose up -d
(remove -d
for foreground mode)ssh root@localhost -p 2022
mysqladmin -u root password '<NEW_PASSWORD>'