3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
farmOS/docker
Michael Stenta 757399438f Tell PHPStan where to find GeoPHP classes.
This fixes the following errors:

- Property Drupal\farm_geo\GeometryWrapper::$geometry has unknown class Geometry as its type.
- Parameter $geometry of method Drupal\farm_geo\GeometryWrapper::__construct() has invalid type Geometry.
- Instantiated class GeometryCollection not found.
2022-09-13 10:23:48 -04:00
..
dev Tell PHPStan where to find GeoPHP classes. 2022-09-13 10:23:48 -04:00
build-farmOS.sh Add PHPStan dependencies: phpstan/phpstan, phpstan/phpstan-deprecation-rules, phpstan/extension-installer, mglaman/phpstan-drupal. 2022-09-12 19:38:23 -04:00
docker-compose.development.yml Pin selenium/standalone-chrome to 4.1.2-20220217. #514 2022-04-07 11:24:01 -04:00
docker-compose.production.yml Reference non-existent farmos/farmos:2.x.y Docker tag in production hosting docs/examples. 2021-12-23 07:10:22 -05:00
docker-compose.testing.common.yml Pin selenium/standalone-chrome to 4.1.2-20220217. #514 2022-04-07 11:24:01 -04:00
docker-compose.testing.mariadb.yml Remove test-runner service. 2021-09-02 14:44:51 -04:00
docker-compose.testing.pgsql.yml Remove test-runner service. 2021-09-02 14:44:51 -04:00
docker-compose.testing.sqlite.yml Remove test-runner service. 2021-09-02 14:44:51 -04:00
docker-entrypoint.sh Wait only as long as necessary for Postgres and the farmOS file copying to be done 2020-11-27 06:53:07 -05:00
Dockerfile Set PHP expose_php to Off. 2021-09-14 14:44:15 -04:00
README.md Reference non-existent farmos/farmos:2.x.y Docker tag in production hosting docs/examples. 2021-12-23 07:10:22 -05: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. 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.