tidbstandalone/docker-compose.yml

41 lines
867 B
YAML

# Minimal TiDB setup - Standalone mode with unistore
services:
tidb:
image: pingcap/tidb:latest
container_name: tidb
hostname: tidb.orb.local # OrbStack DNS
command:
- tidb-server
- --store=unistore
- --path=/tmp/tidb
- --advertise-address=tidb
ports:
- "4000:4000"
- "10080:10080"
volumes:
- tidb_data:/tmp/tidb
environment:
- TIDB_ENABLE_TELEMETRY=false
healthcheck:
test: ["CMD", "wget", "-q", "-O-", "http://127.0.0.1:10080/status"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: '2'
memory: 2G
reservations:
cpus: '1'
memory: 1G
restart: unless-stopped
volumes:
tidb_data:
driver: local
networks:
default:
name: tidb-network