Fix port issues for swarm. Update README.

This commit is contained in:
2022-12-20 16:39:37 +02:00
parent dc3d2109d4
commit 38a1242443
3 changed files with 10 additions and 7 deletions

View File

@ -13,12 +13,13 @@ 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}"
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY} $${PPORT}"
ports:
- "127.0.0.1:17100:17099"
- "4160:4160"
environment:
- PBKEY=
- PPORT=4160
uam_2:
image: debian:bullseye-slim
@ -32,12 +33,13 @@ 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}"
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY} $${PPORT}"
ports:
- "127.0.0.1:17101:17099"
- "4161:4160"
- "4161:4161"
environment:
- PBKEY=
- PPORT=4161
uam_3:
image: debian:bullseye-slim
@ -51,9 +53,10 @@ 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}"
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY} $${PPORT}"
ports:
- "127.0.0.1:17102:17099"
- "4162:4160"
- "4162:4162"
environment:
- PBKEY=
- PPORT=4162

View File

@ -7,5 +7,5 @@ dpkg -i uam-latest_amd64.deb
cd /opt/uam/
echo "[net]" >> /root/.uam/uam.ini
container_ip="$(hostname -i)"
echo "listens=[${container_ip}]:4160" >> /root/.uam/uam.ini
echo "listens=[${container_ip}]:$2" >> /root/.uam/uam.ini
./uam --pk $1 --http [0.0.0.0]:17099 --no-ui