Files
group_xinghuo_jinrong/docker-compose.yml
T

38 lines
863 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# JinRong 本地依赖:Redis + Neo4j(MySQL 用本机 3306,不在此 compose 内)
services:
redis:
image: redis:7-alpine
container_name: jinrong-redis
ports:
- "6379:6379"
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: