Add basic support for Docker + Compose, refs #9406 #275
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Redmine: https://projects.artefactual.com/issues/9406
Usage
You need a Docker host (Engine) or a cluster (Swarm) and Docker Compose in order to orchestrate all the containers.
Docker Machine can assist you to easily deploy Docker hosts locally or using virtual machines or even remotely (cloud or bare-metal). There is also a bundle with all the tools included available for Windows and OSX users: Docker Toolbox.
Our default environment is described in
docker-compose.dev.yml
, which is meant to be used by developers. Production environments can differ significantly in the way they are composed based on your resources. We may provide some examples in the future, but that's not in the scope of this pull request.Once the dependencies are installed, check out the repository and run:
Environment variables
When you start the
artefactual/atom
image, you can adjust a number of settings passing environment variables on thedocker run
command line or via the Docker Compose file.ATOM_DEVELOPMENT_MODE
Off
ATOM_ELASTICSEARCH_HOST
ATOM_MEMCACHED_HOST
ATOM_GEARMAND_HOST
ATOM_MYSQL_DSN
ATOM_MYSQL_USERNAME
ATOM_MYSQL_PASSWORD
ATOM_PHP_MAX_EXECUTION_TIME
120
ATOM_PHP_MAX_INPUT_TIME
120
ATOM_PHP_MEMORY_LIMIT
512M
ATOM_PHP_POST_MAX_SIZE
72M
ATOM_PHP_UPLOAD_MAX_FILESIZE
64M
ATOM_PHP_MAX_FILE_UPLOADS
20
ATOM_PHP_DATE_TIMEZONE
America/Vancouver