2026-04-14 16:27:47 +08:00
|
|
|
services:
|
|
|
|
|
postgres:
|
2026-04-14 18:14:41 +08:00
|
|
|
image: postgres:18.3
|
2026-04-14 16:27:47 +08:00
|
|
|
container_name: k12study-postgres
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
|
|
|
|
POSTGRES_DB: k12study
|
|
|
|
|
POSTGRES_USER: k12study
|
|
|
|
|
POSTGRES_PASSWORD: k12study
|
2026-04-14 18:14:41 +08:00
|
|
|
PGDATA: /var/lib/postgresql/18/docker
|
2026-04-14 16:27:47 +08:00
|
|
|
ports:
|
|
|
|
|
- "5432:5432"
|
|
|
|
|
volumes:
|
2026-04-14 18:14:41 +08:00
|
|
|
- postgres-data:/var/lib/postgresql
|
|
|
|
|
- ../../init/pg:/docker-entrypoint-initdb.d
|
2026-04-14 16:27:47 +08:00
|
|
|
|
|
|
|
|
redis:
|
|
|
|
|
image: redis:7
|
|
|
|
|
container_name: k12study-redis
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
ports:
|
|
|
|
|
- "6379:6379"
|
|
|
|
|
command: redis-server --appendonly yes
|
|
|
|
|
volumes:
|
|
|
|
|
- redis-data:/data
|
2026-04-16 15:46:29 +08:00
|
|
|
nacos:
|
|
|
|
|
image: nacos/nacos-server:v3.2.1-2026.04.03
|
|
|
|
|
container_name: k12study-nacos
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
|
|
|
|
MODE: standalone
|
|
|
|
|
NACOS_AUTH_ENABLE: "false"
|
|
|
|
|
TZ: Asia/Shanghai
|
|
|
|
|
JVM_XMS: 256m
|
|
|
|
|
JVM_XMX: 512m
|
|
|
|
|
JVM_XMN: 128m
|
|
|
|
|
ports:
|
|
|
|
|
- "8848:8848"
|
|
|
|
|
- "9848:9848"
|
|
|
|
|
- "9849:9849"
|
|
|
|
|
volumes:
|
|
|
|
|
- nacos-logs:/home/nacos/logs
|
|
|
|
|
- nacos-data:/home/nacos/data
|
|
|
|
|
nebula-metad:
|
|
|
|
|
image: vesoft/nebula-metad:v3.8.0
|
|
|
|
|
container_name: k12study-nebula-metad
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
command:
|
|
|
|
|
- --meta_server_addrs=nebula-metad:9559
|
|
|
|
|
- --local_ip=nebula-metad
|
|
|
|
|
- --ws_ip=0.0.0.0
|
|
|
|
|
- --port=9559
|
|
|
|
|
- --data_path=/data/meta
|
|
|
|
|
ports:
|
|
|
|
|
- "9559:9559"
|
|
|
|
|
volumes:
|
|
|
|
|
- nebula-meta-data:/data/meta
|
|
|
|
|
nebula-storaged:
|
|
|
|
|
image: vesoft/nebula-storaged:v3.8.0
|
|
|
|
|
container_name: k12study-nebula-storaged
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
command:
|
|
|
|
|
- --meta_server_addrs=nebula-metad:9559
|
|
|
|
|
- --local_ip=nebula-storaged
|
|
|
|
|
- --ws_ip=0.0.0.0
|
|
|
|
|
- --port=9779
|
|
|
|
|
- --data_path=/data/storage
|
|
|
|
|
depends_on:
|
|
|
|
|
- nebula-metad
|
|
|
|
|
ports:
|
|
|
|
|
- "9779:9779"
|
|
|
|
|
volumes:
|
|
|
|
|
- nebula-storage-data:/data/storage
|
|
|
|
|
nebula-graphd:
|
|
|
|
|
image: vesoft/nebula-graphd:v3.8.0
|
|
|
|
|
container_name: k12study-nebula-graphd
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
command:
|
|
|
|
|
- --meta_server_addrs=nebula-metad:9559
|
|
|
|
|
- --local_ip=nebula-graphd
|
|
|
|
|
- --ws_ip=0.0.0.0
|
|
|
|
|
- --port=9669
|
|
|
|
|
depends_on:
|
|
|
|
|
- nebula-metad
|
|
|
|
|
- nebula-storaged
|
|
|
|
|
ports:
|
|
|
|
|
- "9669:9669"
|
|
|
|
|
milvus-etcd:
|
|
|
|
|
image: quay.io/coreos/etcd:v3.5.5
|
|
|
|
|
container_name: k12study-milvus-etcd
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
|
|
|
|
ETCD_AUTO_COMPACTION_MODE: revision
|
|
|
|
|
ETCD_AUTO_COMPACTION_RETENTION: "1000"
|
|
|
|
|
ETCD_QUOTA_BACKEND_BYTES: "4294967296"
|
|
|
|
|
ETCD_SNAPSHOT_COUNT: "50000"
|
|
|
|
|
command: etcd -advertise-client-urls=http://milvus-etcd:2379 -listen-client-urls=http://0.0.0.0:2379 --data-dir=/etcd
|
|
|
|
|
volumes:
|
|
|
|
|
- milvus-etcd-data:/etcd
|
|
|
|
|
milvus-minio:
|
|
|
|
|
image: minio/minio:RELEASE.2024-11-07T00-52-20Z
|
|
|
|
|
container_name: k12study-milvus-minio
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
|
|
|
|
MINIO_ACCESS_KEY: minioadmin
|
|
|
|
|
MINIO_SECRET_KEY: minioadmin
|
|
|
|
|
command: minio server /data
|
|
|
|
|
ports:
|
|
|
|
|
- "9000:9000"
|
|
|
|
|
volumes:
|
|
|
|
|
- milvus-minio-data:/data
|
|
|
|
|
milvus:
|
|
|
|
|
image: milvusdb/milvus:v2.4.8
|
|
|
|
|
container_name: k12study-milvus
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
command: ["milvus", "run", "standalone"]
|
|
|
|
|
depends_on:
|
|
|
|
|
- milvus-etcd
|
|
|
|
|
- milvus-minio
|
|
|
|
|
environment:
|
|
|
|
|
ETCD_ENDPOINTS: milvus-etcd:2379
|
|
|
|
|
MINIO_ADDRESS: milvus-minio:9000
|
|
|
|
|
ports:
|
|
|
|
|
- "19530:19530"
|
|
|
|
|
- "9091:9091"
|
|
|
|
|
volumes:
|
|
|
|
|
- milvus-data:/var/lib/milvus
|
2026-04-14 16:27:47 +08:00
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
postgres-data:
|
|
|
|
|
redis-data:
|
2026-04-16 15:46:29 +08:00
|
|
|
nacos-logs:
|
|
|
|
|
nacos-data:
|
|
|
|
|
nebula-meta-data:
|
|
|
|
|
nebula-storage-data:
|
|
|
|
|
milvus-etcd-data:
|
|
|
|
|
milvus-minio-data:
|
|
|
|
|
milvus-data:
|