Skip to content

Latest commit

 

History

History
111 lines (69 loc) · 4.09 KB

docker-volumes.md

File metadata and controls

111 lines (69 loc) · 4.09 KB

Permissions | Tags | Architectures | Versions | Flavours | Extensions | Tools | Env Vars | Volumes | Base Images


Documentation

Docker Volumes

  1. Overview
  2. /etc/php-custom.d/
  3. /etc/php-fpm-custom.d/
  4. /startup.1.d/
  5. /startup.2.d/
  6. /var/log/php/
  7. /var/mail/
  8. /etc/supervisor/custom.d/
  9. /etc/bashrc-devilbox.d/
  10. /shared/backups/
  11. /ca/

Overview

The following table gives an overview about which volume is available to which flavour.

Docker Volume base mods prod slim work
/etc/php-custom.d/
/etc/php-fpm-custom.d/
/startup.1.d/
/startup.2.d/
/var/log/php/
/var/mail/
/etc/supervisor/custom.d/
/etc/bashrc-devilbox.d/
/shared/backups/
/ca/

📂 /etc/php-custom.d/

Mount this directory into your host system and add custom PHP *.ini files in order to alter PHP behaviour.

📂 /etc/php-fpm-custom.d/

Mount this directory into your host system and add custom PHP-FPM *.conf files in order to alter PHP-FPM behaviour.

📂 /startup.1.d/

Any executable scripts ending by *.sh found in this directory will be executed during startup. This is useful to supply additional commands (such as installing custom software) when the container starts up. (will run before /startup.2.d).

📂 /startup.2.d/

Any executable scripts ending by *.sh found in this directory will be executed during startup. This is useful to supply additional commands (such as installing custom software) when the container starts up. (will run after /startup.1.d).

📂 /var/log/php/

When setting environment variable DOCKER_LOGS to 0, PHP and PHP-FPM log files will be available in this directory.

📂 /var/mail/

Emails caught be the postfix catch-all (ENABLE_MAIL=2) will be available in this directory.

📂 /etc/supervisor/custom.d/

Mount this directory into your host computer and add your own *.conf supervisor start-up files.

Note: Directory and file permission will be recursively set to this of NEW_UID and NEW_GID.

📂 /etc/bashrc-devilbox.d/

Mount this directory into your host computer and add custom configuration files for bash and other tools.

📂 /shared/backups/

Mount this directory into your host computer to access MySQL backups created by mysqldump-secure.

📂 /ca/

Mount this directory into your host computer to bake any *.crt file that is located in there as a trusted SSL entity.