This commit is contained in:
@@ -8,12 +8,16 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
3proxy:
|
3proxy:
|
||||||
image: 3proxy/3proxy
|
image: alpine:latest
|
||||||
network_mode: host
|
network_mode: host
|
||||||
environment:
|
environment:
|
||||||
- PROXY_USER=${PROXY_USER}
|
- PROXY_USER=${PROXY_USER}
|
||||||
- PROXY_PASS=${PROXY_PASS}
|
- PROXY_PASS=${PROXY_PASS}
|
||||||
volumes:
|
command: >
|
||||||
- ./entrypoint.sh:/entrypoint.sh:ro
|
sh -c "
|
||||||
command: /entrypoint.sh
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user