Skip to content

Commit c4aacc5

Browse files
author
june012006
committed
Add autoheal and wireguard-tunnel
1 parent 9a73f24 commit c4aacc5

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

autoheal/compose.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
services:
3+
autoheal:
4+
image: willfarrell/autoheal
5+
restart: always
6+
environment:
7+
- AUTOHEAL_CONTAINER_LABEL=autoheal
8+
- DOCKER_HOST=${DOCKER_HOSTS}

wireguard-tunnel/compose.yaml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
services:
3+
wireguard:
4+
image: lscr.io/linuxserver/wireguard:latest
5+
container_name: wireguard
6+
cap_add:
7+
- NET_ADMIN
8+
- SYS_MODULE #optional
9+
env_file:
10+
- .env
11+
environment:
12+
- PUID=1000
13+
- PGID=1000
14+
- TZ=America/Chicago
15+
- SERVERURL=${VPS} #optional
16+
- SERVERPORT=51820 #optional
17+
- PEERS=1 #optional
18+
- PEERDNS=auto #optional
19+
- INTERNAL_SUBNET=10.13.13.0 #optional
20+
- ALLOWEDIPS=0.0.0.0/0 #optional
21+
- PERSISTENTKEEPALIVE_PEERS=all #optional
22+
- LOG_CONFS=false #optional
23+
labels:
24+
- autoheal=true
25+
healthcheck:
26+
test: curl -k https://whoami.${FQDN} -v --resolve 'whoami.${FQDN}:443:10.1.10.1'
27+
interval: 30s
28+
timeout: 30s
29+
retries: 3
30+
volumes:
31+
- ./config:/config
32+
#- /lib/modules:/lib/modules #optional
33+
#ports:
34+
# - 51820:51820/udp
35+
#networks:
36+
# - proxy
37+
sysctls:
38+
- net.ipv4.conf.all.src_valid_mark=1
39+
restart: unless-stopped
40+
networks:
41+
proxy:
42+
external: true

0 commit comments

Comments
 (0)