fix caps for handlers

This commit is contained in:
ace 2024-08-03 05:09:43 +03:00
parent f070466daf
commit 8dc462d7a8
Signed by: ace
GPG Key ID: 2C08973DD37A76FD

View File

@ -7,6 +7,8 @@
container_default_behavior: no_defaults container_default_behavior: no_defaults
detach: true detach: true
restart_policy: unless-stopped restart_policy: unless-stopped
cap_add:
- NET_ADMIN
env: "{{ wireguard_ui_combined_env }}" env: "{{ wireguard_ui_combined_env }}"
volumes: "{{ wireguard_ui_volumes }}" volumes: "{{ wireguard_ui_volumes }}"
when: when:
@ -22,6 +24,8 @@
image: "{{ wireguard_ui_container_registry }}/{{ wireguard_ui_image_name }}:{{ wireguard_ui_image_tag }}" image: "{{ wireguard_ui_container_registry }}/{{ wireguard_ui_image_name }}:{{ wireguard_ui_image_tag }}"
state: started state: started
restart: yes restart: yes
cap_add:
- NET_ADMIN
env: "{{ wireguard_ui_combined_env }}" env: "{{ wireguard_ui_combined_env }}"
volumes: "{{ wireguard_ui_volumes }}" volumes: "{{ wireguard_ui_volumes }}"
when: when: