Files
podux/deploy/docker-compose.yml
T
2026-03-03 15:20:11 +08:00

53 lines
1000 B
YAML

version: '3.8'
services:
frpc-hub:
image: ghcr.io/luckjiawei/frpc-hub:${VERSION:-latest}
container_name: frpc-hub
restart: unless-stopped
ports:
- "8090:8090"
volumes:
- frpc-hub-data:/app/pb_data
environment:
- TZ=Asia/Shanghai
# Resource limits (optional)
deploy:
resources:
limits:
cpus: '2'
memory: 1G
reservations:
cpus: '0.5'
memory: 256M
# Network mode (optional)
# Uncomment if you need host network for better frpc performance
# network_mode: host
# Logging
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8090/api/health"]
interval: 30s
timeout: 3s
start_period: 10s
retries: 3
volumes:
frpc-hub-data:
driver: local
networks:
default:
name: frpc-hub-network