services: wireguard-ui: image: ngoduykhanh/wireguard-ui:latest restart: always container_name: wireguard-ui cap_add: - NET_ADMIN # required to show active clients. with this set, you don't need to expose the ui port (5000) anymore network_mode: host environment: # - SENDGRID_API_KEY # - EMAIL_FROM_ADDRESS # - EMAIL_FROM_NAME # - SESSION_SECRET - WGUI_USERNAME=admin - WGUI_PASSWORD=admin - WGUI_DNS=5.1.66.255,185.150.99.255 # - WG_CONF_TEMPLATE - WGUI_MANAGE_START=false - WGUI_MANAGE_RESTART=true # - SMTP_HOSTNAME # - SMTP_PORT=465 # - SMTP_USERNAME # - SMTP_PASSWORD # - SMTP_AUTH_TYPE=LOGIN # - SMTP_ENCRYPTION=SSLTLS - BIND_ADDRESS=127.0.0.1:5000 logging: driver: json-file options: max-size: 50m volumes: - ./db:/app/db - /etc/wireguard:/etc/wireguard