-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
94 lines (90 loc) · 2.92 KB
/
docker-compose.yml
File metadata and controls
94 lines (90 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Full stack for Member A E2E: ANDB + MinIO (S3 cold tier).
# From repo root:
# docker compose up -d
# Server: http://127.0.0.1:8080 MinIO API: http://127.0.0.1:9000 Console: http://127.0.0.1:9001
#
# Intranet mirror support:
# - Put build args in repo-root `.env` to avoid public internet pulls, e.g.
# BASE_REGISTRY=registry.company.local/library/
# APT_MIRROR=http://apt-mirror.company.local/debian
# GO_LLAMACPP_REPO=https://git.company.local/mirror/go-llama.cpp.git
# GOPROXY=https://goproxy.company.local,direct
# GOSUMDB=off
# - Keep these empty to use upstream defaults.
#
# Run capture script against the composed server (after `pip install -r requirements.txt`):
# PLASMOD_BASE_URL=http://127.0.0.1:8080 python scripts/e2e/member_a_capture.py --out /tmp/member_a_out
services:
minio:
image: quay.io/minio/minio:latest
command: server /data --address ":9000" --console-address ":9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_data:/data
minio-init:
image: quay.io/minio/mc:latest
depends_on:
- minio
restart: "no"
entrypoint:
- /bin/sh
- -c
- |
set -e
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do
if mc alias set local http://minio:9000 minioadmin minioadmin 2>/dev/null; then
break
fi
sleep 2
done
mc alias set local http://minio:9000 minioadmin minioadmin
mc mb local/andb-integration || true
andb:
build:
context: .
dockerfile: Dockerfile
args:
BASE_REGISTRY: ${BASE_REGISTRY:-}
APT_MIRROR: ${APT_MIRROR:-}
GO_LLAMACPP_REPO: ${GO_LLAMACPP_REPO:-https://github.com/go-skynet/go-llama.cpp.git}
GOPROXY: ${GOPROXY:-}
GOSUMDB: ${GOSUMDB:-}
image: plasmod:latest
volumes:
- andb_data:/data
ports:
- "8080:8080"
environment:
PLASMOD_HTTP_ADDR: 0.0.0.0:8080
APP_MODE: ${APP_MODE:-prod}
ANDB_CONFLICT_MERGE_SKIP_DATASET_LOADER: "true"
PLASMOD_STORAGE: disk
PLASMOD_DATA_DIR: /data
# CPU-safe defaults for Member A baseline stack.
# Override via env when validating GPU paths (e.g. PLASMOD_EMBEDDER=onnx, PLASMOD_EMBEDDER_DEVICE=cuda).
PLASMOD_EMBEDDER: ${PLASMOD_EMBEDDER:-tfidf}
PLASMOD_EMBEDDER_DEVICE: ${PLASMOD_EMBEDDER_DEVICE:-cpu}
S3_ENDPOINT: minio:9000
S3_ACCESS_KEY: minioadmin
S3_SECRET_KEY: minioadmin
S3_BUCKET: andb-integration
S3_SECURE: "false"
S3_REGION: us-east-1
S3_PREFIX: andb/docker
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:8080/healthz || exit 1"]
interval: 10s
timeout: 3s
retries: 10
start_period: 20s
depends_on:
minio-init:
condition: service_completed_successfully
volumes:
minio_data:
andb_data: