Files
mctf/towercore/docker-compose.yml
T
TakuyaYagam1 ea9f241058 fix(towercore): block cross-subscriber bulk reads
- Proxy TowerCore frames and reject opcode 0x23 requests containing subscriber selectors.
- Preserve checker bulk reads that address authenticated message IDs.
2026-11-29 15:24:45 +03:00

65 lines
1.4 KiB
YAML
Executable File

services:
towercore:
image: towercore:final-mips64le
platform: linux/mips64le
restart: unless-stopped
init: true
stop_grace_period: 10s
cpus: "2.0"
mem_limit: 1g
pids_limit: 256
ulimits:
nofile: {soft: 2048, hard: 2048}
privileged: false
read_only: true
cap_drop: ["ALL"]
security_opt: ["no-new-privileges:true"]
env_file:
- path: ./config.env
required: false
expose:
- "7250"
volumes:
- towercore_mips_state:/var/lib/towercore
healthcheck:
test: ["CMD", "/towerctl", "hello", "127.0.0.1:7250"]
interval: 30s
timeout: 5s
retries: 5
logging:
driver: json-file
options:
max-size: "10k"
max-file: "3"
guard:
build:
context: .
dockerfile: Dockerfile.guard
platform: linux/amd64
restart: unless-stopped
init: true
depends_on:
towercore:
condition: service_healthy
environment:
BACKEND_HOST: towercore
BACKEND_PORT: "7250"
LISTEN_PORT: "7250"
ports:
- "7250:7250"
cpus: "0.5"
mem_limit: 64m
pids_limit: 64
read_only: true
cap_drop: ["ALL"]
security_opt: ["no-new-privileges:true"]
healthcheck:
test: ["CMD", "python", "-c", "import socket; socket.create_connection(('127.0.0.1', 7250), 2).close()"]
interval: 10s
timeout: 3s
retries: 5
volumes:
towercore_mips_state: