Fixes #378 Allow to mount local ssh dir into PHP container (r/o)

This commit is contained in:
cytopia 2020-01-04 22:15:50 +01:00
parent 304fc86329
commit f29d552dfa
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
4 changed files with 31 additions and 0 deletions

View File

@ -15,6 +15,7 @@ major versions.
#### Added
- [#615](https://github.com/cytopia/devilbox/issues/615) Add phpmd
- [#378](https://github.com/cytopia/devilbox/issues/378) Allow to mount local `.ssh/` directory into PHP container (read-only)
## Release v1.5.0 (2020-01-03)

View File

@ -202,6 +202,9 @@ services:
# Certificate Authority public key
- ${DEVILBOX_PATH}/ca:/ca:rw${MOUNT_OPTIONS}
# Users SSH directory (read-only)
- ${HOST_PATH_SSH_DIR}:/home/devilbox/.ssh:ro${MOUNT_OPTIONS}
depends_on:
- bind

View File

@ -923,6 +923,23 @@ always be ``/shared/httpd/``.
``docker-compose rm``.
HOST_PATH_SSH_DIR
-----------------
The path on your host OS of the ssh directory to be mounted into the
PHP container into ``/home/devilbox/.ssh``.
.. note::
The path is mounted read-only to ensure you cannot accidentally
delete any ssh keys from inside the php container.
+------------------------------+----------------+----------------+
| Name | Allowed values | Default value |
+==============================+================+================+
| ``HOST_PATH_SSH_DIR`` | valid path | ``~/.ssh`` |
+------------------------------+----------------+----------------+
Docker host ports
=================

View File

@ -442,6 +442,16 @@ MOUNT_OPTIONS=
HOST_PATH_HTTPD_DATADIR=./data/www
###
### The path on your host OS of the ssh directory to be mounted into the
### PHP container into /home/devilbox/.ssh.
###
### IMPORTANT: The path is mounted read-only to ensure you cannot accidentally
## delete anything inside the php container.
###
HOST_PATH_SSH_DIR=~/.ssh
################################################################################
###