Files
compose-anything/src/frpc/docker-compose.yaml
2025-11-10 19:55:44 +08:00

28 lines
713 B
YAML

x-defaults: &defaults
restart: unless-stopped
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
services:
frpc:
<<: *defaults
image: ${GLOBAL_REGISTRY:-}snowdreamtech/frpc:${FRPC_VERSION:-0.64.0}
volumes:
- ./frpc.toml:/etc/frp/frpc.toml:ro
environment:
TZ: ${TZ:-UTC}
FRP_SERVER_ADDR: ${FRP_SERVER_ADDR}
FRP_SERVER_PORT: ${FRP_SERVER_PORT}
FRP_SERVER_TOKEN: ${FRP_SERVER_TOKEN}
deploy:
resources:
limits:
cpus: ${FRPC_CPU_LIMIT:-0.5}
memory: ${FRPC_MEMORY_LIMIT:-128M}
reservations:
cpus: ${FRPC_CPU_RESERVATION:-0.1}
memory: ${FRPC_MEMORY_RESERVATION:-64M}