#jinja2: lstrip_blocks: "True" --- version: '3.3' services: {% for item in keypairs %} {{ item.item }}: build: context: ./server/ volumes: - ./config/{{ item.item }}-wg0.conf:/etc/wireguard/wg0.conf networks: - default expose: - 51871 command: [ "sleep", "10000" ] cap_add: [ "NET_ADMIN" ] {% endfor %} networks: default: