mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-07 03:45:34 +01:00
parent
a179f1b0ee
commit
b4b289748a
7 changed files with 68 additions and 2 deletions
|
@ -40,6 +40,7 @@ services:
|
|||
profiles: [web]
|
||||
{% endif %}
|
||||
|
||||
{% if "php" == language %}
|
||||
php:
|
||||
<<: *default-app
|
||||
build:
|
||||
|
@ -52,6 +53,20 @@ services:
|
|||
- database
|
||||
{% endif -%}
|
||||
profiles: [php]
|
||||
{% elseif "node" == language %}
|
||||
node:
|
||||
<<: *default-app
|
||||
build:
|
||||
context: .
|
||||
target: build
|
||||
volumes:
|
||||
- .:{{ project_root }}
|
||||
{% if "database" in dockerCompose.services|keys -%}
|
||||
depends_on:
|
||||
- database
|
||||
{% endif -%}
|
||||
profiles: [node]
|
||||
{% endif %}
|
||||
|
||||
{% if "database" in dockerCompose.services|keys %}
|
||||
database:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue