Files
mctf/towercore/docker-compose.yml
TakuyaYagam1 d1ae79a5f7 fix(towercore): patch peer context selectors
- Force opcode 0x21 and 0x23 reads through the authenticated session UE.
- Build a derived MIPS image while retaining the original service runtime.
2026-11-29 15:37:25 +03:00

68 lines
1.5 KiB
YAML
Executable File

services:
towercore:
image: towercore:patched-mips64le
build:
context: .
dockerfile: Dockerfile.towercore
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: