farmOS/docker
Michael Stenta 485908beb0 Fix composer require farmos/farmos version constraint in build-farmOS.sh. 2023-11-27 13:40:49 -05:00
..
conf.d Move configuration to separate files to improve Dockerfile legibility. 2023-11-06 09:55:09 -05:00
dev Move configuration to separate files to improve Dockerfile legibility. 2023-11-06 09:55:09 -05:00
Dockerfile Build PHP dependencies in one stage. 2023-11-06 09:55:22 -05:00
README.md Replace all usages of docker-compose with docker compose. 2023-03-30 09:43:07 -04:00
build-farmOS.sh Fix composer require farmos/farmos version constraint in build-farmOS.sh. 2023-11-27 13:40:49 -05:00
docker-compose.development.yml Issue #3270558: Install and create the postgres pg_trgm extension in docker container 2023-10-30 12:07:29 -04:00
docker-compose.production.yml Change all references of 2.x to 3.x in code, docs, and workflows. 2023-10-27 09:25:10 -04:00
docker-compose.testing.common.yml Change all references of 2.x to 3.x in code, docs, and workflows. 2023-10-27 09:25:10 -04:00
docker-compose.testing.mariadb.yml Remove test-runner service. 2021-09-02 14:44:51 -04:00
docker-compose.testing.pgsql.yml Issue #3270558: Install and create the postgres pg_trgm extension in docker container 2023-10-30 12:07:29 -04:00
docker-compose.testing.sqlite.yml Remove test-runner service. 2021-09-02 14:44:51 -04:00
docker-entrypoint.sh Change mode of docker-entrypoint.sh to 755 in repo instead of using chown in Dockerfile. 2023-11-06 09:55:09 -05:00

README.md

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. It references a non-existent farmos/farmos:x.y.z image version tag, which should be replaced with the most recent farmOS stable release version.

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.

Note that this example does not include a database. It is assumed that in production environments the database will be managed outside of Docker.

For more information, see https://farmOS.org/hosting.