feat: add Docker deployment, update install script, and project configs
- Add Dockerfile and docker-compose.yml for containerized deployment - Rewrite install.sh for Docker-based setup (multi-distro support) - Add Go module files (go.mod, go.sum) for WGRplane backend - Add wgrplane.service systemd unit for Go backend - Add CI verification scripts in scripts/ - Update README.md with Docker deployment docs - Update .gitignore for binaries and .sisyphus/
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
wgrplane:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "10087:10087"
|
||||
volumes:
|
||||
- ./wgrplane-data:/var/lib/wgrplane
|
||||
- ./wireguard-config:/etc/wireguard
|
||||
depends_on:
|
||||
- wireguard
|
||||
restart: unless-stopped
|
||||
|
||||
wireguard:
|
||||
image: ghcr.io/linuxserver/wireguard:latest
|
||||
container_name: wireguard
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_MODULE
|
||||
network_mode: "host"
|
||||
volumes:
|
||||
- /etc/wireguard:/config
|
||||
- /lib/modules:/lib/modules
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=UTC
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user