MicroFish/docker-compose.yml

43 lines
1.1 KiB
YAML

services:
mirofish:
image: ghcr.io/666ghj/mirofish:latest
# Mirror tăng tốc (nếu kéo image chậm có thể thay địa chỉ ở trên)
# image: ghcr.nju.edu.cn/666ghj/mirofish:latest
container_name: mirofish
env_file:
- .env
ports:
- "3000:3000"
- "5001:5001"
restart: unless-stopped
volumes:
- ./backend/uploads:/app/backend/uploads
depends_on:
neo4j:
condition: service_healthy
neo4j:
image: neo4j:5.26.2
container_name: neo4j
ports:
- "7474:7474" # Web UI (http://localhost:7474)
- "7687:7687" # Bolt driver
environment:
- NEO4J_AUTH=${NEO4J_USER:-neo4j}/${NEO4J_PASSWORD:-team10diem}
- NEO4J_server_memory_heap_initial__size=512m
- NEO4J_server_memory_heap_max__size=2g
- NEO4J_server_memory_pagecache_size=1g
volumes:
- neo4j_data:/data
- neo4j_logs:/logs
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:7474 || exit 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
restart: unless-stopped
volumes:
neo4j_data:
neo4j_logs: