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