uam-docker/uam/docker-compose.yml

28 lines
649 B
YAML

version: '2.4'
services:
uam:
image: debian:bullseye-slim
container_name: uam
hostname: uam
restart: unless-stopped
stop_grace_period: 5s
ulimits:
rtprio: 95
memlock: -1
oom_score_adj: -700
mem_swappiness: 10
cap_add:
- NET_ADMIN
volumes:
- "./entrypoint.sh:/opt/entrypoint.sh"
- "/opt/uam_data:/root/.uam"
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY} $${NETLIMUP} $${NETLIMDOWN}"
ports:
- "127.0.0.1:17099:17099"
- "4156:4156"
environment:
- PBKEY=${PBKEY?err}
- NETLIMUP=10000
- NETLIMDOWN=18000