mirror of
https://github.com/Tha14/uam-docker.git
synced 2025-07-04 15:16:45 +02:00
feat: add wondershaper and update README.md
This commit is contained in:
@ -15,13 +15,15 @@ services:
|
||||
volumes:
|
||||
- "./entrypoint.sh:/opt/entrypoint.sh"
|
||||
- "/opt/uam_data/uam_1:/root/.uam"
|
||||
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY} $${PPORT}"
|
||||
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY} $${PPORT} $${NETLIMUP} $${NETLIMDOWN}"
|
||||
ports:
|
||||
- "127.0.0.1:17100:17099"
|
||||
- "4160:4160"
|
||||
environment:
|
||||
- PBKEY=${PBKEY?err}
|
||||
- PPORT=4160
|
||||
- NETLIMUP=10000
|
||||
- NETLIMDOWN=18000
|
||||
|
||||
uam_2:
|
||||
image: debian:bullseye-slim
|
||||
@ -37,13 +39,15 @@ services:
|
||||
volumes:
|
||||
- "./entrypoint.sh:/opt/entrypoint.sh"
|
||||
- "/opt/uam_data/uam_2:/root/.uam"
|
||||
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY} $${PPORT}"
|
||||
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY} $${PPORT} $${NETLIMUP} $${NETLIMDOWN}"
|
||||
ports:
|
||||
- "127.0.0.1:17101:17099"
|
||||
- "4161:4161"
|
||||
environment:
|
||||
- PBKEY=${PBKEY?err}
|
||||
- PPORT=4161
|
||||
- NETLIMUP=10000
|
||||
- NETLIMDOWN=18000
|
||||
|
||||
uam_3:
|
||||
image: debian:bullseye-slim
|
||||
@ -59,10 +63,12 @@ services:
|
||||
volumes:
|
||||
- "./entrypoint.sh:/opt/entrypoint.sh"
|
||||
- "/opt/uam_data/uam_3:/root/.uam"
|
||||
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY} $${PPORT}"
|
||||
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY} $${PPORT} $${NETLIMUP} $${NETLIMDOWN}"
|
||||
ports:
|
||||
- "127.0.0.1:17102:17099"
|
||||
- "4162:4162"
|
||||
environment:
|
||||
- PBKEY=${PBKEY?err}
|
||||
- PPORT=4162
|
||||
- NETLIMUP=10000
|
||||
- NETLIMDOWN=18000
|
||||
|
@ -1,7 +1,8 @@
|
||||
#!/bin/sh
|
||||
cd /tmp
|
||||
apt update && apt -yq install wget libglib2.0-0 ca-certificates dnsmasq
|
||||
apt update && apt -yq install wget libglib2.0-0 ca-certificates dnsmasq wondershaper
|
||||
update-ca-certificates
|
||||
wondershaper eth0 $3 $4 &
|
||||
wget https://update.u.is/downloads/uam/linux/uam-latest_amd64.deb
|
||||
dpkg -i uam-latest_amd64.deb
|
||||
cd /opt/uam/
|
||||
|
Reference in New Issue
Block a user