20 lines
455 B
Cheetah
20 lines
455 B
Cheetah
#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
|
|
- ../target/x86_64-unknown-linux-musl/debug/wgvirtipd:/usr/local/bin/wgvirtipd
|
|
networks:
|
|
- default
|
|
expose:
|
|
- 51871
|
|
command: [ "sleep", "10000" ]
|
|
cap_add: [ "NET_ADMIN" ]
|
|
{% endfor %}
|
|
networks:
|
|
default:
|