Commit graph

25 commits

Author SHA1 Message Date
Oliver Davies ca2b0731e5 fix(docker-compose): set network as external 2023-06-27 21:20:59 +01:00
Oliver Davies db76011b91 fix(docker-compose): remove empty anchors 2023-06-11 01:07:30 +01:00
Oliver Davies 7af6ec5d8a fix: use Traefik with PHP Apache images 2023-06-05 23:02:01 +01:00
Oliver Davies 6531efe56e fix: indentation error 2023-05-09 20:09:12 +01:00
Oliver Davies 0cd35db6db fix: only generate a web service if it's
...included in the `services` list in `build.yaml`.
2023-05-09 19:40:43 +01:00
Oliver Davies 1e9fcc8a75 refactor!: change services into a list of names
Previously:

```yaml
docker-compose:
  services:
    database: ~
    php:
      build:
        target: build
```

Now:

```yaml
docker-compose:
  services:
    - database
    - php
```
2023-05-09 19:13:32 +01:00
Oliver Davies 4d034d9ba2 feat: allow for adding extra databases
Allow for declaring extra databases that should be created when the
project is first started. This is done by adding an `extra_databases`
key to `database`, containing a list of database names.

```yaml
database:
  type: mariadb
  version: 10
  extra_databases:
    - tinhat
    - freshcover
```
2023-04-07 08:40:42 +01:00
Oliver Davies 692151d26c fix: Docker Compose YAML error
Implement the fix from
https://github.com/docker/compose/issues/10411#issuecomment-1488019350.

Refs: OD-12
2023-04-07 01:21:07 +01:00
Oliver Davies eb01ae0790 fix: add DOCKER_UID argument 2023-03-17 16:56:24 +00:00
Oliver Davies fc8474d198 feat: enable Traefik proxy for Fractal 2023-03-17 15:39:33 +00:00
Oliver Davies 7deddd4aa6 refactor: hard-code the build service target name 2023-03-17 14:58:51 +00:00
Oliver Davies fd5af4f397 fix: missing web service 2023-03-14 23:22:05 +00:00
Oliver Davies 474f8129a9 fix: incorrect docroot value 2023-03-14 23:21:57 +00:00
Oliver Davies d865f694fd fix: remove debug code 2023-03-14 23:12:38 +00:00
Oliver Davies 1802fdeb53 fix: incorrect project type 2023-03-14 23:11:59 +00:00
Oliver Davies 62bbe88ffc fix: spacing 2023-03-14 23:11:28 +00:00
Oliver Davies b4b289748a feat: add initial node support
Refs: #5
2023-03-12 12:33:33 +00:00
Oliver Davies 3891774f79 fix: add missing volume to the PHP service 2023-03-10 23:16:39 +00:00
Oliver Davies 22299f1cc6 feat: disable the web service
Don't create a `web` service in Docker Compose if it has been disabled
in `build.yaml`.

Fixes #28
2023-03-10 22:38:13 +00:00
Oliver Davies 6b5c1b5aee feat: add project_root setting
Allow for overriding the project root from `/app` to something else,
such as `/var/www/html`.

The default is set within a new `build.defaults.yaml` file which the
project specific file is merged into.

Fixes #27
2023-03-10 22:21:14 +00:00
Oliver Davies 0fcffc5d2f feat: add "auto-generated" text to templates
Fixes #21
2023-03-08 21:13:28 +00:00
Oliver Davies 1fb75c9d93 feat: make the Drupal docroot configurable
Allow for setting a `docroot` directory for Drupal projects.

By default, I've set this to `web` as that's what the Drupal Composer
scaffold projects use, but other platforms such as Acquia Cloud hosting
use `docroot`.

This is how it can be configured in `build.yaml`:

```yaml
drupal:
  docroot: docroot
```

Fixes #2
2023-02-19 13:00:06 +00:00
Oliver Davies 1d7f796538 feat: add extra hosts to the web service 2023-02-14 14:35:45 +00:00
Oliver Davies ddb1bcd58d feat: make the database values configurable
- Allow for setting a database `type` and `version`.
- Don't add a `database` service to docker-compose.yaml if there is no
  key within `docker-compose`.

Fixes #14
2023-02-03 20:13:28 +00:00
Oliver Davies 579c476a54 Add remaining templates 2023-01-19 19:47:15 +00:00