Test
yatee
in your browser.
Input template
version: "3.4" services: "@for i in 0..2": replica$i: image: superduperserver:latest command: /run $i port: - $(5000 + ($i*2)) - $(5001 + ($i * 2)) "@if ${myapp.debug}": debugger: image: debug "@if ! ${myapp.debug}": monitor: image: monitor "@for i in $myapp.services": "$i": image: $i:latest
myapp: debug: false services: - nginx - redis
Result: