mirror of
https://github.com/Tha14/uam-docker.git
synced 2024-11-24 19:33:01 +01:00
Fix port issues for swarm. Update README.
This commit is contained in:
parent
dc3d2109d4
commit
38a1242443
@ -15,7 +15,7 @@
|
|||||||
2. Clone this repository.
|
2. Clone this repository.
|
||||||
3. Add your Public Key by editing the docker-compose.yml file. Add it to the variable named `PBKEY` without spaces for each service.
|
3. Add your Public Key by editing the docker-compose.yml file. Add it to the variable named `PBKEY` without spaces for each service.
|
||||||
4. If you're on windows or macos, make sure you change the volume path `/opt/uam_data/uam_` to something that works on your OS.
|
4. If you're on windows or macos, make sure you change the volume path `/opt/uam_data/uam_` to something that works on your OS.
|
||||||
5. Optionally, add or remove services according to your needs. You can copy and paste the existing services and modify the names, paths, and ports for each.
|
5. Optionally, add or remove services according to your needs. You can copy and paste the existing services and modify the names, paths, and ports for each of them.
|
||||||
6. Execute the following command in terminal while being in the `uam-swarm` directory of this repository:
|
6. Execute the following command in terminal while being in the `uam-swarm` directory of this repository:
|
||||||
|
|
||||||
```docker-compose up -d```
|
```docker-compose up -d```
|
||||||
|
@ -13,12 +13,13 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- "./entrypoint.sh:/opt/entrypoint.sh"
|
- "./entrypoint.sh:/opt/entrypoint.sh"
|
||||||
- "/opt/uam_data/uam_1:/root/.uam"
|
- "/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:
|
ports:
|
||||||
- "127.0.0.1:17100:17099"
|
- "127.0.0.1:17100:17099"
|
||||||
- "4160:4160"
|
- "4160:4160"
|
||||||
environment:
|
environment:
|
||||||
- PBKEY=
|
- PBKEY=
|
||||||
|
- PPORT=4160
|
||||||
|
|
||||||
uam_2:
|
uam_2:
|
||||||
image: debian:bullseye-slim
|
image: debian:bullseye-slim
|
||||||
@ -32,12 +33,13 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- "./entrypoint.sh:/opt/entrypoint.sh"
|
- "./entrypoint.sh:/opt/entrypoint.sh"
|
||||||
- "/opt/uam_data/uam_2:/root/.uam"
|
- "/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:
|
ports:
|
||||||
- "127.0.0.1:17101:17099"
|
- "127.0.0.1:17101:17099"
|
||||||
- "4161:4160"
|
- "4161:4161"
|
||||||
environment:
|
environment:
|
||||||
- PBKEY=
|
- PBKEY=
|
||||||
|
- PPORT=4161
|
||||||
|
|
||||||
uam_3:
|
uam_3:
|
||||||
image: debian:bullseye-slim
|
image: debian:bullseye-slim
|
||||||
@ -51,9 +53,10 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- "./entrypoint.sh:/opt/entrypoint.sh"
|
- "./entrypoint.sh:/opt/entrypoint.sh"
|
||||||
- "/opt/uam_data/uam_3:/root/.uam"
|
- "/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:
|
ports:
|
||||||
- "127.0.0.1:17102:17099"
|
- "127.0.0.1:17102:17099"
|
||||||
- "4162:4160"
|
- "4162:4162"
|
||||||
environment:
|
environment:
|
||||||
- PBKEY=
|
- PBKEY=
|
||||||
|
- PPORT=4162
|
||||||
|
@ -7,5 +7,5 @@ dpkg -i uam-latest_amd64.deb
|
|||||||
cd /opt/uam/
|
cd /opt/uam/
|
||||||
echo "[net]" >> /root/.uam/uam.ini
|
echo "[net]" >> /root/.uam/uam.ini
|
||||||
container_ip="$(hostname -i)"
|
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
|
./uam --pk $1 --http [0.0.0.0]:17099 --no-ui
|
||||||
|
Loading…
Reference in New Issue
Block a user