mirror of
https://github.com/Viren070/docker-compose-template.git
synced 2025-12-01 23:17:00 +01:00
38 lines
966 B
YAML
38 lines
966 B
YAML
services:
|
|
gluetun:
|
|
image: qmcgaw/gluetun
|
|
container_name: gluetun
|
|
restart: unless-stopped
|
|
cap_add:
|
|
- NET_ADMIN
|
|
devices:
|
|
- /dev/net/tun:/dev/net/tun
|
|
ports:
|
|
- 127.0.0.1:8888:8888/tcp # HTTP proxy
|
|
environment:
|
|
- VPN_SERVICE_PROVIDER=protonvpn
|
|
- VPN_TYPE=wireguard
|
|
- WIREGUARD_PRIVATE_KEY=${WIREGUARD_PRIVATE_KEY}
|
|
- SERVER_COUNTRIES=Netherlands
|
|
- FREE_ONLY=true
|
|
# Server list updater
|
|
# See https://github.com/qdm12/gluetun-wiki/blob/main/setup/servers.md#update-the-vpn-servers-list
|
|
- UPDATER_PERIOD=24h
|
|
- HTTPPROXY=on
|
|
- HTTPPROXY_LISTENING_ADDRESS=:8888
|
|
- HTTPPROXY_STEALTH=on
|
|
volumes:
|
|
- gluetun-data:/gluetun
|
|
healthcheck:
|
|
test: ["CMD", "/gluetun-entrypoint", "healthcheck"]
|
|
interval: 60s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 1m
|
|
networks:
|
|
- addon_network
|
|
|
|
networks:
|
|
addon_network:
|
|
external: true
|