wgvirtipd/dev/docker-compose.yaml.tmpl
2024-01-21 22:52:57 +01:00

25 lines
733 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
- ./config/{{ item.item }}-keepalived.conf:/etc/keepalived/keepalived.conf
- ./config/check.sh:/etc/keepalived/check.sh
- ./config/master.sh:/etc/keepalived/master.sh
- ./config/lighttpd.conf:/etc/lighttpd/lighttpd.conf
- ./config/{{ item.item }}-index.html:/var/www/index.html
- ../target/x86_64-unknown-linux-musl/debug:/opt/wgvirtipd
networks:
- default
expose:
- 51871
command: [ "sleep", "10000" ]
cap_add: [ "NET_ADMIN" ]
{% endfor %}
networks:
default: