mirror of
https://github.com/cytopia/devilbox.git
synced 2025-01-29 15:44:04 +00:00
Fixes #378 Allow to mount local ssh dir into PHP container (r/o)
This commit is contained in:
parent
304fc86329
commit
f29d552dfa
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
=================
|
||||
|
||||
|
10
env-example
10
env-example
@ -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
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
###
|
||||
|
Loading…
x
Reference in New Issue
Block a user