Some containers and their parameters are required for Docksal to work properly. Please see Don’t break your Docksal setup! section.
You have to run
fin project start (
fin p start for short) to apply configuration changes.
If you remove services or volumes you have to remove them with
fin project rm [service].
docksal.yml is a Compose file.
It’s the main configuration file for a project and controls the settings for each service. Use it to
modify settings that are needed for anyone that uses your project.
If you don’t have this file in your project folder, fin will load the default stack, this way providing a zero-configuration setup.
For more details on its role, check loading order.
docksal.env is an Environment file.
It is used to override some of the default environment variables, without the need for
docksal.yml file (e.g., to override
MYSQL_ROOT_PASSWORD) or to provide additional environment
variables for your automation scripts (see custom commands).
docksal-local.env are used for additional customizations that happen after the main files
are loaded. See loading order. A good example of their use is exposing custom ports
or switching PHP versions.
These files are intended for local overrides. They should be added to
.gitignore and never committed into a project
repo. You can always include an example file in the repo, e.g.,
example.docksal-local.env, and instruct users to copy
it and adjust as necessary.
Docksal ships with a set of default configurations (stacks), which are
yml files stored in
These files are a good reference when you begin creating a custom project configuration.
|Contains default service descriptions.
|Acquia alike stack with Apache, MySQL, PHP-FPM, Solr, Varnish and memcached.
|The default stack with 3 services that inherits
services.yml. Used for zero-configuration.
|The default stack sans the
|Suitable for NodeJS projects. Consists of the
cli service only.
|Pantheon alike stack with Nginx, MariaDB, PHP-FPM, Solr, Varnish and Redis.
|Different bindings for Docker volumes. Docksal picks the default based on the host OS/hypervisor.
To enable a particular stack config, use the
DOCKSAL_STACK configuration variable in your project:
fin config set DOCKSAL_STACK="node"
Do not change or customize existing default stacks.
See Custom Configuration to learn how to manage a custom stack configuration in Docksal.
With this swarm of configuration files, Docksal lets you configure a project in a way that works for you and your team. Just like Bash configuration files (/etc/profile, bashrc, bash_profile, bash_logout), they give the flexibility to configure a Docksal project in dozens of ways.
fin loads files in a certain order. Files loaded later override settings from the files loaded earlier.
The list below goes from the earliest to the latest in this queue.
$HOME/.docksal/stacks/volumes-*.yml - only
volumes-bind.yml loads at the moment (volumes in Docksal)
$HOME/.docksal/stacks/stack-*.yml - only loads if there is no
docksal.yml in the project or if forced by setting the
DOCKSAL_STACK variable in
docksal.yml - extends the stack if
DOCKSAL_STACK is set in
docksal.env or completely overrides it otherwise
docksal.env - sets or modifies environment variables
docksal-local.yml - extends the loaded stack or
docksal-local.env - sets or modifies environment variables set previously
To see the files loaded for a particular project run
fin config show.
To see all Docker Hub images produced and supported by Docksal team run:
fin image registry
To get all tags of a certain image provide its name with the same command. For example:
fin image registry docksal/cli