Closed Vacilando closed 5 years ago
Drush did not work when using drupal-php versions with stability tags -- see #39
Here's an updated snippet that works -- could you please adjust the documentation and the default docker-compose.yml as needed?
sshd:
image: wodby/drupal-php:7.1-2.4.3
command: /usr/sbin/sshd -De
environment:
SSH_PUBLIC_KEYS: |-
["PUBLICKEY"]
volumes:
- ./:/var/www/html
- PRIVATEKEY_PATH:/home/www-data/.ssh/id_rsa
ports:
- '2222:22'
Documented at https://github.com/wodby/php#sshd
Please document docker-compose.yml configuration to access the PHP container via SSH. Perhaps best would be to add it as a commented section in docker-compose.yml itself.
Something like this works for me (inspired by https://github.com/wodby/docker4drupal/issues/65#issuecomment-288293006):