2026-09-07 17:42:43 +08:00
|
|
|
|
# JinRong 本地依赖:Redis + Neo4j(MySQL 用本机 3306,不在此 compose 内)
|
|
|
|
|
|
services:
|
|
|
|
|
|
redis:
|
|
|
|
|
|
image: redis:7-alpine
|
|
|
|
|
|
container_name: jinrong-redis
|
|
|
|
|
|
ports:
|
2026-09-09 20:19:55 +08:00
|
|
|
|
- "6380:6379"
|
2026-09-07 17:42:43 +08:00
|
|
|
|
volumes:
|
|
|
|
|
|
- jinrong_redis_data:/data
|
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
healthcheck:
|
|
|
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
|
|
|
|
interval: 5s
|
|
|
|
|
|
timeout: 3s
|
|
|
|
|
|
retries: 10
|
|
|
|
|
|
|
|
|
|
|
|
neo4j:
|
|
|
|
|
|
image: neo4j:5
|
|
|
|
|
|
container_name: jinrong-neo4j
|
|
|
|
|
|
ports:
|
|
|
|
|
|
- "7474:7474"
|
|
|
|
|
|
- "7687:7687"
|
|
|
|
|
|
environment:
|
|
|
|
|
|
NEO4J_AUTH: neo4j/jinrong_dev_neo4j
|
|
|
|
|
|
NEO4J_PLUGINS: '["apoc"]'
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
- jinrong_neo4j_data:/data
|
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
healthcheck:
|
|
|
|
|
|
test: ["CMD-SHELL", "wget -qO- http://localhost:7474 || exit 1"]
|
|
|
|
|
|
interval: 10s
|
|
|
|
|
|
timeout: 5s
|
|
|
|
|
|
retries: 12
|
|
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
jinrong_redis_data:
|
|
|
|
|
|
jinrong_neo4j_data:
|