mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
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
|
@ -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…
Reference in a new issue