Sss
Deploy ru-vps / deploy (push) Failing after 1s

This commit is contained in:
Dmitry
2026-06-08 19:18:03 +03:00
parent 40a499decf
commit 055bb45be4
2 changed files with 4 additions and 16 deletions
@@ -1,5 +1,3 @@
#!/bin/sh
cat > /tmp/3proxy.cfg << EOF
daemon daemon
log /dev/stdout log /dev/stdout
auth strong auth strong
@@ -7,5 +5,3 @@ users ${PROXY_USER}:CL:${PROXY_PASS}
allow ${PROXY_USER} allow ${PROXY_USER}
parent 1000 socks5 127.0.0.1 7890 parent 1000 socks5 127.0.0.1 7890
socks -p1080 socks -p1080
EOF
exec 3proxy /tmp/3proxy.cfg
+4 -12
View File
@@ -6,18 +6,10 @@ services:
- ./squid.conf:/etc/squid/squid.conf:ro - ./squid.conf:/etc/squid/squid.conf:ro
- ./passwd:/etc/squid/passwd:ro - ./passwd:/etc/squid/passwd:ro
restart: unless-stopped restart: unless-stopped
3proxy: 3proxy:
image: alpine:latest image: 3proxy/3proxy
network_mode: host network_mode: host
environment: volumes:
- PROXY_USER=${PROXY_USER} - ./3proxy.cfg:/config/3proxy.cfg:ro
- PROXY_PASS=${PROXY_PASS} command: /config/3proxy.cfg
command: >
sh -c "
apk add --no-cache 3proxy &&
printf 'users %s:CL:%s\nproxy -a -p3128\nlog /dev/stdout\n' \"\${PROXY_USER}\" \"\${PROXY_PASS}\" > /tmp/3proxy.cfg &&
cat /tmp/3proxy.cfg &&
3proxy /tmp/3proxy.cfg
"
restart: unless-stopped restart: unless-stopped