mirror of
https://github.com/Tha14/uam-docker.git
synced 2025-12-07 18:56:35 +01:00
fix: swarm net privileges, make wondershaper toggleable
This commit is contained in:
@@ -12,16 +12,19 @@ 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}"
|
||||
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY} $${PPORT} $${NETLIMUP} $${NETLIMDOWN} $${ENABLE_WONDERSHAPER}"
|
||||
ports:
|
||||
- "127.0.0.1:17100:17099"
|
||||
- "4160:4160"
|
||||
environment:
|
||||
- PBKEY=${PBKEY?err}
|
||||
- PPORT=4160
|
||||
- ENABLE_WONDERSHAPER=true
|
||||
- NETLIMUP=10000
|
||||
- NETLIMDOWN=18000
|
||||
|
||||
@@ -36,16 +39,19 @@ 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}"
|
||||
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY} $${PPORT} $${NETLIMUP} $${NETLIMDOWN} $${ENABLE_WONDERSHAPER}"
|
||||
ports:
|
||||
- "127.0.0.1:17101:17099"
|
||||
- "4161:4161"
|
||||
environment:
|
||||
- PBKEY=${PBKEY?err}
|
||||
- PPORT=4161
|
||||
- ENABLE_WONDERSHAPER=true
|
||||
- NETLIMUP=10000
|
||||
- NETLIMDOWN=18000
|
||||
|
||||
@@ -60,15 +66,18 @@ 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}"
|
||||
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY} $${PPORT} $${NETLIMUP} $${NETLIMDOWN} $${ENABLE_WONDERSHAPER}"
|
||||
ports:
|
||||
- "127.0.0.1:17102:17099"
|
||||
- "4162:4162"
|
||||
environment:
|
||||
- PBKEY=${PBKEY?err}
|
||||
- PPORT=4162
|
||||
- ENABLE_WONDERSHAPER=true
|
||||
- NETLIMUP=10000
|
||||
- NETLIMDOWN=18000
|
||||
|
||||
Reference in New Issue
Block a user