wgvirtipd/dev/docker-compose.yaml.tmpl

21 lines
455 B
Cheetah
Raw Normal View History

2024-01-17 21:48:47 +01:00
#jinja2: lstrip_blocks: "True"
---
version: '3.3'
services:
{% for item in keypairs %}
{{ item.item }}:
build:
2024-01-17 22:04:46 +01:00
context: ./server/
2024-01-17 21:48:47 +01:00
volumes:
- ./config/{{ item.item }}-wg0.conf:/etc/wireguard/wg0.conf
- ../target/x86_64-unknown-linux-musl/debug/wgvirtipd:/usr/local/bin/wgvirtipd
2024-01-17 21:48:47 +01:00
networks:
- default
2024-01-17 22:04:46 +01:00
expose:
- 51871
command: [ "sleep", "10000" ]
cap_add: [ "NET_ADMIN" ]
2024-01-17 21:48:47 +01:00
{% endfor %}
networks:
default: