generated from mietzen/docker-ci-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yaml
49 lines (48 loc) · 1.59 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
services:
redsocks:
image: mietzen/redsocks-proxy:stable
hostname: redsocks
cap_add:
- NET_ADMIN
- NET_RAW
environment:
- PROXY_SERVER=de-ber-wg-socks5-005.relays.mullvad.net
- PROXY_PORT=1080
# Optional:
# DNSCrypt:
# - DNSCrypt_Active=true
# - DOH_SERVERS=quad9-doh-ip4-port443-nofilter-ecs-pri, quad9-doh-ip4-port443-nofilter-pri # Server-List: https://dnscrypt.info/public-servers/
# - FALL_BACK_DNS=9.9.9.9
# FIREWALL:
# - REDIRECT_PORTS=all # Only certain port, e.g. REDIRECT_PORTS=21,80,443
# - ALLOW_DOCKER_CIDR=true
# - LIMIT_UDP=true
# REDSOCKS:
# - LOGIN=myuser
# - PASSWORD=mypass
# - LOCAL_IP=127.0.0.1
# - LOCAL_PORT=8081
# - PROXY_TYPE=socks5
# - LOG_DEBUG=off
# - LOG_INFO=on
# - CONNPRES_IDLE_TIMEOUT=7440
# - DISCLOSE_SRC=false
# - LISTENQ=128
# - MAX_ACCEPT_BACKOFF=60000
# - ON_PROXY_FAIL=close
# - REDSOCKS_CONN_MAX=500
# - RLIMIT_NOFILE=1024
# - SPLICE=false
# - TCP_KEEPALIVE_INTVL=75
# - TCP_KEEPALIVE_PROBES=9
# - TCP_KEEPALIVE_TIME=300
dns: 9.9.9.9 # Optional, but recommended if not using DNSCrypt
restart: unless-stopped
debian:
image: mietzen/debian-curl-jq:stable
depends_on:
redsocks:
condition: service_healthy
network_mode: service:redsocks
command: /bin/bash -c 'while true; do echo "[Deb-cURL] $$(date '"'"'+[%Y-%m-%d %H:%M:%S]'"'"') [INFO] $$(curl -sSL https://am.i.mullvad.net/connected)" && sleep 10; done'
restart: unless-stopped