26 lines
821 B
Cheetah
26 lines
821 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/{{ item.item }}-lighttpd.conf:/etc/lighttpd/lighttpd.conf
|
|
- ./config/{{ item.item }}-index.html:/var/www/index.html
|
|
- ./config/{{ item.item }}-wgvirtipd.sh:/usr/local/bin/wgvirtipd.sh
|
|
- ../target/x86_64-unknown-linux-musl/debug:/opt/wgvirtipd
|
|
networks:
|
|
- default
|
|
expose:
|
|
- 51871
|
|
command: [ "sleep", "10000" ]
|
|
cap_add: [ "NET_ADMIN" ]
|
|
{% endfor %}
|
|
networks:
|
|
default:
|