diff --git a/uam/docker-compose.yml b/uam/docker-compose.yml index 04bacd8..6c951f2 100644 --- a/uam/docker-compose.yml +++ b/uam/docker-compose.yml @@ -4,9 +4,9 @@ services: uam: image: debian:bullseye-slim container_name: uam + hostname: uam restart: unless-stopped - stop_grace_period: 20s - network_mode: host + stop_grace_period: 5s ulimits: rtprio: 95 memlock: -1 @@ -14,5 +14,8 @@ services: - "./entrypoint.sh:/opt/entrypoint.sh" - "/opt/uam_data:/root/.uam" command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY}" + ports: + - "127.0.0.1:17099:17099" + - "4156:4156" environment: - PBKEY= diff --git a/uam/entrypoint.sh b/uam/entrypoint.sh index 7b32d30..e33c745 100755 --- a/uam/entrypoint.sh +++ b/uam/entrypoint.sh @@ -1,8 +1,8 @@ #!/bin/sh 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 wget https://update.u.is/downloads/uam/linux/uam-latest_amd64.deb dpkg -i uam-latest_amd64.deb 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