import
This commit is contained in:
41
docker-compose.yml
Normal file
41
docker-compose.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
version: "3"
|
||||
services:
|
||||
wireguard:
|
||||
image: linuxserver/wireguard:v1.0.20210914-ls6
|
||||
container_name: wireguard
|
||||
network_mode: bridge
|
||||
restart: always
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
volumes:
|
||||
- /root/Docker/wireguard-ui/config:/config
|
||||
ports:
|
||||
- "51820:51820/udp"
|
||||
- "5000:5000/tcp"
|
||||
|
||||
|
||||
wireguard-ui:
|
||||
image: ngoduykhanh/wireguard-ui:latest
|
||||
container_name: wireguard-ui
|
||||
restart: always
|
||||
depends_on:
|
||||
- wireguard
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
# use the network of the 'wireguard' service. this enables to show active clients in the status page
|
||||
network_mode: service:wireguard
|
||||
environment:
|
||||
- SENDGRID_API_KEY
|
||||
- EMAIL_FROM_ADDRESS
|
||||
- EMAIL_FROM_NAME
|
||||
- WGUI_USERNAME=admin
|
||||
- WGUI_PASSWORD=admin
|
||||
- WGUI_MANAGE_START=true
|
||||
- WGUI_MANAGE_RESTART=true
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 50m
|
||||
volumes:
|
||||
- /root/Docker/wireguard-ui/ui/db:/app/db
|
||||
- /root/Docker/wireguard-ui/config:/etc/wireguard
|
||||
Reference in New Issue
Block a user