docker-compose.yml
· 479 B · YAML
Исходник
services:
wireguard:
image: wg-easy/wg-easy:latest
container_name: wireguard
ports:
- "51820:51820/udp"
- "51821:51821/tcp"
volumes:
- ./wireguard:/etc/wireguard
environment:
- WG_HOST=your_server_ip
- PASSWORD_HASH=$(openssl passwd -1 your_password)
- PORT=51821
- WG_PORT=51820
restart: unless-stopped
healthcheck:
test: ["CMD", "wg", "show"]
interval: 30s
timeout: 10s
retries: 3
| 1 | services: |
| 2 | wireguard: |
| 3 | image: wg-easy/wg-easy:latest |
| 4 | container_name: wireguard |
| 5 | ports: |
| 6 | - "51820:51820/udp" |
| 7 | - "51821:51821/tcp" |
| 8 | volumes: |
| 9 | - ./wireguard:/etc/wireguard |
| 10 | environment: |
| 11 | - WG_HOST=your_server_ip |
| 12 | - PASSWORD_HASH=$(openssl passwd -1 your_password) |
| 13 | - PORT=51821 |
| 14 | - WG_PORT=51820 |
| 15 | restart: unless-stopped |
| 16 | healthcheck: |
| 17 | test: ["CMD", "wg", "show"] |
| 18 | interval: 30s |
| 19 | timeout: 10s |
| 20 | retries: 3 |
| 21 |