|
|
|
|
|
by kh_hk
1405 days ago
|
|
It's a simple example, maybe too simple to get the point. What I want is to conditionally set things on a yaml file. If you have ever used a templating language, you know this problem services:
redis:
...
{{ if some_condition }}
volumes:
bla bla
{{ end if }}
{{ if some_other_condition }}
another_service:
...
{{ end if }}
volumes:
{{ for volume in volumes }}
- ...
{{ end for }}
|
|