Files
Agent-System/deploy/control-center/docker-compose.yml
T
weichenandCursor 0929f58aef chore(control-center): bind the database port to loopback
The compose file published 5440 on all interfaces. Match the other
environment databases and listen only on 127.0.0.1.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-19 03:20:22 +00:00

31 lines
755 B
YAML

name: control-center
services:
db:
image: pgvector/pgvector:pg16
container_name: control-center-db
restart: unless-stopped
environment:
POSTGRES_USER: ${CC_DB_USER:-cc}
POSTGRES_PASSWORD: ${CC_DB_PASSWORD:-cc}
POSTGRES_DB: ${CC_DB_NAME:-control_center}
ports:
- "127.0.0.1:${CC_DB_PORT:-5440}:5432"
volumes:
- cc-db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER:-cc} -d $${POSTGRES_DB:-control_center}"]
interval: 5s
timeout: 3s
retries: 12
volumes:
cc-db-data:
# Docker's predefined pool is exhausted on this host; pin an explicit subnet.
networks:
default:
ipam:
config:
- subnet: 172.32.0.0/24