x-unidesk-log-rotation: &unidesk-log-rotation driver: json-file options: max-size: "${UNIDESK_DOCKER_LOG_MAX_SIZE:-20m}" max-file: "${UNIDESK_DOCKER_LOG_MAX_FILE:-3}" services: sub2api-master-egress-proxy: image: ghcr.io/shadowsocks/ssserver-rust:latest container_name: unidesk-sub2api-master-egress-proxy restart: unless-stopped ports: - "0.0.0.0:18792:18792/tcp" volumes: - /root/unidesk/.state/secrets/platform-infra/sub2api-master-egress-proxy.config.json:/etc/shadowsocks-rust/config.json:ro logging: *unidesk-log-rotation