-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
148 lines (140 loc) · 4 KB
/
Copy pathdocker-compose.yml
File metadata and controls
148 lines (140 loc) · 4 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
services:
redpanda:
image: docker.redpanda.com/redpandadata/redpanda:v24.2.4
container_name: adaptloop-redpanda
command:
- redpanda
- start
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092
- --advertise-kafka-addr internal://redpanda:9092,external://localhost:19092
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082
- --advertise-pandaproxy-addr internal://redpanda:8082,external://localhost:18082
- --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:18081
- --rpc-addr redpanda:33145
- --advertise-rpc-addr redpanda:33145
- --mode dev-container
- --smp 1
- --default-log-level=warn
ports:
- "19092:19092"
- "18081:18081"
- "18082:18082"
volumes:
- redpanda_data:/var/lib/redpanda/data
healthcheck:
test: ["CMD-SHELL", "rpk cluster health | grep -E 'Healthy:.+true'"]
interval: 5s
timeout: 10s
retries: 12
redpanda-init:
image: docker.redpanda.com/redpandadata/redpanda:v24.2.4
container_name: adaptloop-redpanda-init
depends_on:
redpanda:
condition: service_healthy
entrypoint: ["/bin/sh", "/infra/create-topics.sh"]
volumes:
- ./infra/redpanda/create-topics.sh:/infra/create-topics.sh:ro
restart: "no"
redpanda-console:
image: docker.redpanda.com/redpandadata/console:v2.7.2
container_name: adaptloop-redpanda-console
depends_on:
redpanda:
condition: service_healthy
ports:
- "8085:8080"
environment:
KAFKA_BROKERS: redpanda:9092
postgres:
image: pgvector/pgvector:pg16
container_name: adaptloop-postgres
environment:
POSTGRES_USER: adaptloop
POSTGRES_PASSWORD: adaptloop
POSTGRES_DB: adaptloop
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./infra/postgres/init.sql:/docker-entrypoint-initdb.d/01-init.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U adaptloop -d adaptloop"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:7-alpine
container_name: adaptloop-redis
ports:
- "6380:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
# Phase 2 curation / training artifacts (opt-in)
minio:
profiles: ["training"]
image: minio/minio:RELEASE.2024-10-02T17-50-41Z
container_name: adaptloop-minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: adaptloop
MINIO_ROOT_PASSWORD: adaptloopsecret
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 10
start_period: 5s
minio-init:
profiles: ["training"]
image: minio/mc:RELEASE.2024-10-08T09-37-26Z
container_name: adaptloop-minio-init
depends_on:
minio:
condition: service_started
entrypoint: ["/bin/sh", "/infra/create-buckets.sh"]
volumes:
- ./infra/minio/create-buckets.sh:/infra/create-buckets.sh:ro
restart: "no"
mlflow:
profiles: ["training"]
image: ghcr.io/mlflow/mlflow:v2.17.2
container_name: adaptloop-mlflow
command: >
mlflow server
--host 0.0.0.0
--port 5000
--backend-store-uri sqlite:////mlflow/mlflow.db
--default-artifact-root mlflow-artifacts:/
--serve-artifacts
--artifacts-destination /mlflow/artifacts
ports:
- "5001:5000"
volumes:
- mlflow_data:/mlflow
healthcheck:
test:
[
"CMD-SHELL",
"python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:5000/health')\"",
]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
volumes:
redpanda_data:
postgres_data:
redis_data:
minio_data:
mlflow_data: