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
```
This commit is contained in:
parent
ce60f21aa5
commit
1e9fcc8a75
1 changed files with 3 additions and 3 deletions
|
|
@ -52,7 +52,7 @@ services:
|
|||
- "DOCKER_UID=${DOCKER_UID:-1000}"
|
||||
volumes:
|
||||
- .:{{ project_root }}
|
||||
{% if "database" in dockerCompose.services|keys -%}
|
||||
{% if "database" in dockerCompose.services -%}
|
||||
depends_on:
|
||||
- database
|
||||
{% endif -%}
|
||||
|
|
@ -65,14 +65,14 @@ services:
|
|||
target: build
|
||||
volumes:
|
||||
- .:{{ project_root }}
|
||||
{% if "database" in dockerCompose.services|keys -%}
|
||||
{% if "database" in dockerCompose.services -%}
|
||||
depends_on:
|
||||
- database
|
||||
{% endif -%}
|
||||
profiles: [node]
|
||||
{% endif %}
|
||||
|
||||
{% if "database" in dockerCompose.services|keys %}
|
||||
{% if "database" in dockerCompose.services %}
|
||||
database:
|
||||
image: {{ database.type }}:{{ database.version }}
|
||||
deploy:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue