38 lines
811 B
YAML
38 lines
811 B
YAML
|
version: '2.2'
|
||
|
|
||
|
services:
|
||
|
wireguard:
|
||
|
image: linuxserver/wireguard:latest
|
||
|
container_name: wireguard
|
||
|
cap_add:
|
||
|
- NET_ADMIN
|
||
|
volumes:
|
||
|
- /srv/wg/config:/config
|
||
|
ports:
|
||
|
- "51820:51820/udp"
|
||
|
networks:
|
||
|
- proxy
|
||
|
- internal
|
||
|
restart: unless-stopped
|
||
|
|
||
|
wireguard-ui:
|
||
|
image: ngoduykhanh/wireguard-ui:latest
|
||
|
container_name: wireguard-ui
|
||
|
depends_on:
|
||
|
- wireguard
|
||
|
cap_add:
|
||
|
- NET_ADMIN
|
||
|
network_mode: service:wireguard
|
||
|
env_file:
|
||
|
- /etc/ixvd/secrets/env/wg-ui.env
|
||
|
environment:
|
||
|
- WGUI_MANAGE_START=true
|
||
|
- WGUI_MANAGE_RESTART=true
|
||
|
restart: unless-stopped
|
||
|
logging:
|
||
|
driver: json-file
|
||
|
options:
|
||
|
max-size: 50m
|
||
|
volumes:
|
||
|
- /srv/wg/other/ui-db:/app/db
|
||
|
- /srv/wg/config:/etc/wireguard
|