Find a file
2023-12-17 09:43:18 +00:00
.githooks build-configs(update) 2023-11-23 08:35:49 +00:00
.github/workflows build-configs(update) 2023-10-08 09:45:51 +01:00
tools/docker/images build-configs(update) 2023-06-27 21:21:55 +01:00
web/modules fix(phpstan) 2023-04-21 12:48:26 +01:00
.dockerignore build-configs(update) 2023-04-24 20:31:44 +01:00
.env.example build-configs(update) 2023-06-27 21:21:55 +01:00
.gitignore build-configs(update) 2023-11-14 13:04:07 +00:00
.hadolint.yaml build: update configuration files 2023-04-07 01:22:16 +01:00
build.yaml Update to PHP 8.2 2023-12-16 23:21:38 +00:00
CHANGELOG.md Update CHANGELOG 2023-12-16 23:33:02 +00:00
composer.json Update to Drupal 10.2.0 2023-12-16 23:16:17 +00:00
composer.lock Update to Drupal 10.2.0 2023-12-16 23:16:17 +00:00
docker-compose.override.yaml.example refactor: move Drupal into a subdirectory 2022-07-12 23:41:26 +01:00
docker-compose.yaml build-configs: update 2023-09-24 23:00:16 +01:00
Dockerfile Update to PHP 8.2 2023-12-16 23:21:38 +00:00
phpcs.xml.dist build-configs: update 2023-09-24 23:00:16 +01:00
phpstan.neon.dist build-configs(update) 2023-06-27 21:21:55 +01:00
phpunit.xml.dist build-configs(update) 2023-06-27 21:21:55 +01:00
README.md Add usage documentation 2023-12-17 09:43:18 +00:00
run Update build configuration files 2023-12-16 17:09:04 +00:00

docker-example-drupal

Usage

  • Run cp .env.example .env, otherwise you'll get a no service selected error.
  • Run docker compose up to start the project.

Alternatively, run ./run start to run both steps.

  • Run docker compose ps to see the running services.
    • There should be services for database, php and web.

Viewing the site

With a Traefik proxy

The project is pre-configured to work with a Traefik proxy (I have https://github.com/OliverDaviesLtd/traefik-development permanently running).

If this is running, you can view the website at http://docker-example-drupal.localhost.

Without a Traefix proxy

If you don't have a proxy running, you need to expose a port to connect to the web server.

Create a docker-compose.override.yaml file with these contents:

services:
  web:
    ports:
      - "8000:80"

Run docker compose up again and access the site at http://localhost:8000.