wgvirtipd/dev/docker-compose.yaml.tmpl

27 lines
821 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
- ./config/{{ item.item }}-keepalived.conf:/etc/keepalived/keepalived.conf
- ./config/check.sh:/etc/keepalived/check.sh
- ./config/master.sh:/etc/keepalived/master.sh
2024-01-22 16:34:28 +01:00
- ./config/{{ item.item }}-lighttpd.conf:/etc/lighttpd/lighttpd.conf
- ./config/{{ item.item }}-index.html:/var/www/index.html
2024-01-22 16:34:28 +01:00
- ./config/{{ item.item }}-wgvirtipd.sh:/usr/local/bin/wgvirtipd.sh
- ../target/x86_64-unknown-linux-musl/debug:/opt/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: