Find a file
2024-08-04 16:12:42 +01: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 Support Drupal 11 2024-08-04 16:12:42 +01:00
.dockerignore build-configs(update) 2023-04-24 20:31:44 +01:00
.env.example Update build configuration files 2024-07-20 13:57:25 +01:00
.gitignore Update build configuration files 2024-05-10 23:55:28 +02:00
.hadolint.yaml build: update configuration files 2023-04-07 01:22:16 +01:00
build.yaml Upgrade to Drupal 11 2024-08-04 13:06:06 +01:00
CHANGELOG.md Update CHANGELOG 2023-12-16 23:33:02 +00:00
composer.json Upgrade to Drupal 11 2024-08-04 13:06:06 +01:00
composer.lock Upgrade to Drupal 11 2024-08-04 13:06:06 +01:00
docker-compose.override.yaml.example refactor: move Drupal into a subdirectory 2022-07-12 23:41:26 +01:00
docker-compose.yaml Update build configuration files 2024-05-11 00:00:47 +02:00
Dockerfile Upgrade to Drupal 11 2024-08-04 13:06:06 +01: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 2024-07-31 01:21:57 +01: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.