55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
---
|
|
version: "3.1"
|
|
services:
|
|
wireguard:
|
|
image: lscr.io/linuxserver/wireguard
|
|
container_name: wireguard
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_MODULE
|
|
environment:
|
|
- PUID=$PUID
|
|
- PGID=$PGID
|
|
- TZ=Europe/London
|
|
- SERVERURL=$SERVERURL
|
|
- SERVERPORT=$SERVERPORT
|
|
- PEERS=$PEERS
|
|
- PEERDNS=auto
|
|
- ALLOWEDIPS=$ALLOWEDIPS
|
|
- INTERNAL_SUBNET=$INTERNAL_SUBNET
|
|
volumes:
|
|
- ./wireguard/config:/config
|
|
- /lib/modules:/lib/modules
|
|
ports:
|
|
- $SERVERPORT:$SERVERPORT/udp
|
|
- 127.0.0.1:3000:3000
|
|
sysctls:
|
|
- net.ipv4.conf.all.src_valid_mark=1
|
|
- net.ipv4.ip_forward=1
|
|
restart: unless-stopped
|
|
|
|
grafana:
|
|
image: grafana/grafana:8.2.1
|
|
container_name: grafana
|
|
volumes:
|
|
- grafana_data:/var/lib/grafana
|
|
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
|
|
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
|
|
environment:
|
|
- GF_SECURITY_ADMIN_USER=$ADMIN
|
|
- GF_SECURITY_ADMIN_PASSWORD=$PASSWORD
|
|
- GF_USERS_ALLOW_SIGN_UP=false
|
|
restart: unless-stopped
|
|
labels:
|
|
org.label-schema.group: "monitoring"
|
|
network_mode: "service:wireguard"
|
|
|
|
# DEBUG container wireguard
|
|
# alpine:
|
|
#image: alpine
|
|
#command: sleep infinity
|
|
#network_mode: "service:wireguard"
|
|
|
|
volumes:
|
|
grafana_data:
|