Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.52 KB

settings.md

File metadata and controls

45 lines (29 loc) · 1.52 KB

Overriding default PHP/MySQL/etc. settings

Altering PHP and MySQL configuration

The following configuration files are mounted inside the respective containers and can be used to override the default settings:

  • .docksal/etc/php5/php.ini - PHP settings overrides
  • .docksal/etc/php5/php-cli.ini - command line PHP settings overrides
  • .docksal/etc/mysql/my.cnf - MySQL settings overrides

Copy examples/.docksal into the /.docksal folder in your project repo and modify as necessary.

Using different PHP versions

Switching PHP versions is done via the blinkreaction/drupal-cli docker image tags.

To switch to a different image tag:

  • open the docker-compose.yml file
  • replace the cli service image property as necessary (see list of available tags below)
  • run fin up

Available PHP versions:

  • 5.6 (image: blinkreaction/drupal-cli:stable) - default
  • 7.0 (image: blinkreaction/drupal-cli:php7) - experimental

Using different MySQL versions

Switching MySQL versions is done via the blinkreaction/drupal-mysql docker image tags.

To switch to a different image tag:

  • open the docker-compose.yml file
  • replace the db service image property as necessary (see list of available tags below)
  • run fin up

Available MySQL versions:

  • 5.5 (image: blinkreaction/drupal-mysql:5.5)
  • 5.6 (image: blinkreaction/drupal-mysql:5.6) - default.
  • 5.7 (image: blinkreaction/drupal-mysql:5.7)