-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml.twig
40 lines (40 loc) · 1.05 KB
/
docker-compose.yml.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{% set blocks = '_twig/docker-compose.yml/' %}
{% set syncvolume = false %}
{% if @('host.os') == 'darwin' and bool(@('mutagen')) %}
{% set syncvolume = true %}
{% endif %}
version: '{{ @('docker.compose.file_version') }}'
services:
{% for serviceName, service in @('services') %}
{% if service['enabled'] %}
{% include blocks ~ 'service/' ~ serviceName ~ '.yml.twig' %}
{% endif %}
{% endfor %}
{% for service in @('app.services') %}
{% if @('services')[service] is not defined or @('services')[service].enabled is not defined %}
{% include blocks ~ 'service/' ~ service ~ '.yml.twig' %}
{% endif %}
{% endfor %}
networks:
private:
external: false
shared:
external: true
name: my127ws
{% if syncvolume or @('services.solr.enabled') %}
volumes:
{% if syncvolume %}
{% if bool(@('mutagen')) %}
{% for volumeName in get_mutagen_volume_names() %}
{{ volumeName }}:
external: true
{% endfor %}
{% else %}
{{ @('workspace.name') }}-sync:
external: true
{% endif %}
{% endif %}
{% if @('services.solr.enabled') %}
solr_data:
{% endif %}
{% endif %}