3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
farmOS/docker
2020-09-25 09:19:50 -04:00
..
dev Exclude Drupal.Arrays.Array.LongLineDeclaration sniff. 2020-09-25 09:19:50 -04:00
build-farmOS.sh Fix support for tagged versions in build-farmOS.sh. 2020-08-19 21:00:35 -04:00
docker-compose.development.yml Move codebase to /opt/drupal, symlink /var/www/html to /opt/drupal/web, don't override Apache document root. All to mimic upstream drupal:9 image. 2020-08-12 12:48:05 -04:00
docker-compose.production.yml Move codebase to /opt/drupal, symlink /var/www/html to /opt/drupal/web, don't override Apache document root. All to mimic upstream drupal:9 image. 2020-08-12 12:48:05 -04:00
docker-entrypoint.sh Merge farmos/farmos:2.x-base Dockerfile into farmos/farmos:2.x. 2020-08-12 12:50:15 -04:00
Dockerfile Remove Uploadprogress. It is causing AH00051: child pid 27 exit signal Segmentation fault (11), possible coredump in /etc/apache2 2020-09-24 21:37:00 -04:00
README.md Move codebase to /opt/drupal, symlink /var/www/html to /opt/drupal/web, don't override Apache document root. All to mimic upstream drupal:9 image. 2020-08-12 12:48:05 -04:00

Running farmOS with Docker

This directory contains files necessary to build the farmOS Docker image, along with example docker-compose.yml files that can be used for running farmOS in Docker containers.

Development environment

To run a farmOS development environment, copy docker-compose.development.yml into a new directory on your server, rename it to docker-compose.yml and run docker-compose up.

This example mounts a local www directory on the host as a volume in the container at /opt/drupal, which allows for local development with an IDE.

Production environment

To run a farmOS production environment, use docker-compose.production.yml as an example for building your own configuration. Note that this example does not include a database. It is assumed that in production environments the database will be managed outside of Docker.

This example mounts a local sites directory on the host as a volume in the container at /opt/drupal/web/sites, which contains the site-specific settings and uploaded files. This allows a production farmOS instance to be updated by simply pulling a new image (and then manually running database updates via Drush or /update.php). Everything outside of the sites directory will not be preserved and will be replaced with the new official farmOS files.

For more information, see farmOS.org/hosting/docker.