mirror of
https://github.com/Tha14/uam-docker.git
synced 2024-11-24 23:23:02 +01:00
Compare commits
No commits in common. "98e32ecc26a050c2e5d4e8d519a0782493777e19" and "b8bc122fc1fb9be5e9c68b84990cff21705beb72" have entirely different histories.
98e32ecc26
...
b8bc122fc1
@ -1,6 +1,5 @@
|
||||
# Run UAM in a Docker container
|
||||
[![Donate CRP](https://img.shields.io/badge/Donate-CRP-blue.svg)](https://cutt.ly/C2MoaCU) [![run-docker-compose-workflow](https://github.com/Tha14/uam-docker/actions/workflows/push.yml/badge.svg)](https://github.com/Tha14/uam-docker/actions/workflows/push.yml)
|
||||
##### If you find this project helpful you are welcome to make a donation.
|
||||
[![run-docker-compose-workflow](https://github.com/Tha14/uam-docker/actions/workflows/push.yml/badge.svg)](https://github.com/Tha14/uam-docker/actions/workflows/push.yml)
|
||||
|
||||
## How to use:
|
||||
### Single UAM instance
|
||||
@ -26,5 +25,3 @@
|
||||
3. Make sure you port forward manually as upnp will most likely not work.
|
||||
4. You can adjust the maximum upload and download bandwidth of uam by changing the `NETLIMUP` and `NETLIMDOWN` env variables.
|
||||
5. I suggest using [lazydocker](https://github.com/jesseduffield/lazydocker) to control and see the status of your containers.
|
||||
6. You can disable wondershaper(traffic shaping) if you're experiencing problems by setting `ENABLE_WONDERSHAPER` to `false`.
|
||||
|
||||
|
@ -12,19 +12,16 @@ services:
|
||||
memlock: -1
|
||||
oom_score_adj: -700
|
||||
mem_swappiness: 10
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
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} $${NETLIMUP} $${NETLIMDOWN} $${ENABLE_WONDERSHAPER}"
|
||||
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
|
||||
- ENABLE_WONDERSHAPER=true
|
||||
- NETLIMUP=10000
|
||||
- NETLIMDOWN=18000
|
||||
|
||||
@ -39,19 +36,16 @@ services:
|
||||
memlock: -1
|
||||
oom_score_adj: -700
|
||||
mem_swappiness: 10
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
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} $${NETLIMUP} $${NETLIMDOWN} $${ENABLE_WONDERSHAPER}"
|
||||
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
|
||||
- ENABLE_WONDERSHAPER=true
|
||||
- NETLIMUP=10000
|
||||
- NETLIMDOWN=18000
|
||||
|
||||
@ -66,18 +60,15 @@ services:
|
||||
memlock: -1
|
||||
oom_score_adj: -700
|
||||
mem_swappiness: 10
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
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} $${NETLIMUP} $${NETLIMDOWN} $${ENABLE_WONDERSHAPER}"
|
||||
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
|
||||
- ENABLE_WONDERSHAPER=true
|
||||
- NETLIMUP=10000
|
||||
- NETLIMDOWN=18000
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
cd /tmp
|
||||
apt update && apt -yq install wget libglib2.0-0 ca-certificates dnsmasq wondershaper
|
||||
update-ca-certificates
|
||||
@ -8,7 +8,5 @@ cd /opt/uam/
|
||||
echo "[net]" >> /root/.uam/uam.ini
|
||||
container_ip="$(hostname -i)"
|
||||
echo "listens=[${container_ip}]:$2" >> /root/.uam/uam.ini
|
||||
if [[ "$5" == "true" ]]; then
|
||||
wondershaper eth0 $3 $4 &
|
||||
fi
|
||||
./uam --pk $1 --http [0.0.0.0]:17099 --no-ui
|
||||
|
@ -17,12 +17,11 @@ services:
|
||||
volumes:
|
||||
- "./entrypoint.sh:/opt/entrypoint.sh"
|
||||
- "/opt/uam_data:/root/.uam"
|
||||
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY} $${NETLIMUP} $${NETLIMDOWN} $${ENABLE_WONDERSHAPER}"
|
||||
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY} $${NETLIMUP} $${NETLIMDOWN}"
|
||||
ports:
|
||||
- "127.0.0.1:17099:17099"
|
||||
- "4156:4156"
|
||||
environment:
|
||||
- PBKEY=${PBKEY?err}
|
||||
- ENABLE_WONDERSHAPER=true
|
||||
- NETLIMUP=10000
|
||||
- NETLIMDOWN=18000
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
cd /tmp
|
||||
apt update && apt -yq install wget libglib2.0-0 ca-certificates dnsmasq wondershaper
|
||||
update-ca-certificates
|
||||
@ -8,7 +8,5 @@ cd /opt/uam/
|
||||
echo "[net]" >> /root/.uam/uam.ini
|
||||
container_ip="$(hostname -i)"
|
||||
echo "listens=[${container_ip}]:4156" >> /root/.uam/uam.ini
|
||||
if [[ "$4" == "true" ]]; then
|
||||
wondershaper eth0 $2 $3 &
|
||||
fi
|
||||
./uam --pk $1 --http [0.0.0.0]:17099 --no-ui
|
||||
|
Loading…
Reference in New Issue
Block a user