wg-portal/docker-compose.yml

23 lines
598 B
YAML
Raw Permalink Normal View History

---
2020-11-10 11:06:04 +01:00
services:
wg-portal:
2025-05-04 11:00:12 +02:00
image: wgportal/wg-portal:v2
2020-11-10 11:06:04 +01:00
container_name: wg-portal
restart: unless-stopped
logging:
options:
max-size: "10m"
max-file: "3"
2020-11-10 11:06:04 +01:00
cap_add:
- NET_ADMIN
# Use host network mode for WireGuard and the UI. Ensure that access to the UI is properly secured.
2020-11-10 11:06:04 +01:00
network_mode: "host"
volumes:
# left side is the host path, right side is the container path
2020-11-10 11:06:04 +01:00
- /etc/wireguard:/etc/wireguard
- ./data:/app/data
- ./config:/app/config
# restart: no
# command: ["-migrateFrom=/app/data/wg_portal.db"]