

# wg-easy



| Création    | Portainer                                    |
| ----------- | -------------------------------------------- |
| Mise-à-jour | Watchtower                                   |
| Port        | 51821                                        |
| Liens       | [Github](https://github.com/wg-easy/wg-easy) |



```yaml
version: "3.5"

services:
  wgeasy:
    image: ghcr.io/wg-easy/wg-easy:latest
    network_mode: "bridge"
    container_name: wgeasy
    ports:
      - "51820:51820/udp"
      - "51821:51821"
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1
      - net.ipv4.ip_forward=1
    env_file:
      - stack.env
    labels:
      - "com.centurylinklabs.watchtower.enable=true"
    volumes:
      - /volume1/docker/wgeasy:/etc/wireguard
    environment:
      - WG_HOST=photos-nas.ovh
      - WG_DEFAULT_DNS=192.168.2.216
    restart: always

```

