emanuelegori revised this gist 11 months ago. Go to revision
1 file changed, 20 insertions
docker-compose.yml(file created)
| @@ -0,0 +1,20 @@ | |||
| 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 | |
Newer
Older