Browse Source

Docker-Compose config update

Needs to bind to host otherwise It can't control wireguard.
pull/4/head
dragon2611 5 years ago
committed by GitHub
parent
commit
a2658b28f8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 35
      README.md

35
README.md

@ -34,22 +34,25 @@ perara/wireguard-manager
## Docker-compose ## Docker-compose
```yaml ```yaml
wireguard: version: "2"
container_name: wireguard-manager services:
image: perara/wireguard-manager wireguard:
cap_add: container_name: wireguard-manager
- NET_ADMIN image: perara/wireguard-manager
ports: cap_add:
- 51800:51900/udp - NET_ADMIN
- 8888:8888 ports:
volumes: - 51800:51900/udp
- ./ops/wireguard/_data:/config - 8888:8888
environment: volumes:
HOST: 0.0.0.0 - ./ops/wireguard/_data:/config
PORT: 8888 environment:
ADMIN_PASSWORD: admin HOST: 0.0.0.0
ADMIN_USERNAME: admin PORT: 8888
WEB_CONCURRENCY: 1 ADMIN_PASSWORD: admin
ADMIN_USERNAME: admin
WEB_CONCURRENCY: 1
network_mode: host
``` ```
# Install (OS) # Install (OS)

Loading…
Cancel
Save