mirror of
https://github.com/Tha14/uam-docker.git
synced 2024-11-24 22:33:01 +01:00
Replace host networking with static port forwarding. Attempt to fix DNS DoH resolution.
This commit is contained in:
parent
2b4370024b
commit
6f38a09dc0
@ -4,9 +4,9 @@ services:
|
|||||||
uam:
|
uam:
|
||||||
image: debian:bullseye-slim
|
image: debian:bullseye-slim
|
||||||
container_name: uam
|
container_name: uam
|
||||||
|
hostname: uam
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
stop_grace_period: 20s
|
stop_grace_period: 5s
|
||||||
network_mode: host
|
|
||||||
ulimits:
|
ulimits:
|
||||||
rtprio: 95
|
rtprio: 95
|
||||||
memlock: -1
|
memlock: -1
|
||||||
@ -14,5 +14,8 @@ services:
|
|||||||
- "./entrypoint.sh:/opt/entrypoint.sh"
|
- "./entrypoint.sh:/opt/entrypoint.sh"
|
||||||
- "/opt/uam_data:/root/.uam"
|
- "/opt/uam_data:/root/.uam"
|
||||||
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY}"
|
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY}"
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:17099:17099"
|
||||||
|
- "4156:4156"
|
||||||
environment:
|
environment:
|
||||||
- PBKEY=
|
- PBKEY=
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd /tmp
|
cd /tmp
|
||||||
apt update && apt -yq install wget libglib2.0-0 ca-certificates
|
apt update && apt -yq install wget libglib2.0-0 ca-certificates dnsmasq
|
||||||
update-ca-certificates
|
update-ca-certificates
|
||||||
wget https://update.u.is/downloads/uam/linux/uam-latest_amd64.deb
|
wget https://update.u.is/downloads/uam/linux/uam-latest_amd64.deb
|
||||||
dpkg -i uam-latest_amd64.deb
|
dpkg -i uam-latest_amd64.deb
|
||||||
cd /opt/uam/
|
cd /opt/uam/
|
||||||
./uam --pk $1 --http [127.0.0.1]:17099 --no-ui
|
./uam --pk $1 --http [0.0.0.0]:17099 --no-ui
|
||||||
|
Loading…
Reference in New Issue
Block a user