coolify/templates/compose/mindsdb.yaml

50 lines
1.8 KiB
YAML
Raw Permalink Normal View History

2024-10-03 17:26:27 +00:00
# documentation: https://docs.mindsdb.com/what-is-mindsdb
# slogan: MindsDB is the platform for building AI from enterprise data, enabling smarter organizations.
# category: ai
2024-10-03 17:26:27 +00:00
# tags: mysql, postgresdb, machine-learning, ai
2024-10-17 11:49:45 +00:00
# logo: svgs/mindsdb.svg
2024-10-03 17:26:27 +00:00
# port: 47334
services:
mindsdb:
2024-10-17 11:49:45 +00:00
image: mindsdb/mindsdb:latest
2024-10-03 17:26:27 +00:00
environment:
- SERVICE_URL_MINDSDB_47334
- SERVICE_URL_API_47335=/api
2024-10-03 17:26:27 +00:00
- MINDSDB_DOCKER_ENV=true
- MINDSDB_STORAGE_DIR=/mindsdb/var
2024-10-17 11:49:45 +00:00
- FLASK_DEBUG=${FLASK_DEBUG:-1} # This will make sure http requests are logged regardless of log level
- OPENAI_API_KEY=${OPENAI_API_KEY}
- LANGFUSE_HOST=${LANGFUSE_HOST}
- LANGFUSE_PUBLIC_KEY=${LANGFUSE_PUBLIC_KEY}
- LANGFUSE_SECRET_KEY=${LANGFUSE_SECRET_KEY}
- LANGFUSE_RELEASE=${LANGFUSE_RELEASE:-local}
- LANGFUSE_DEBUG=${LANGFUSE_DEBUG:-False}
- LANGFUSE_TIMEOUT=${LANGFUSE_TIMEOUT:-10}
- LANGFUSE_SAMPLE_RATE=${LANGFUSE_SAMPLE_RATE:-1.0}
- MINDSDB_DB_CON=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgresql/${POSTGRES_DB:-mindsdb-db}
2024-10-03 17:26:27 +00:00
volumes:
2024-10-16 22:28:49 +00:00
- mindsdb-data:/mindsdb/var
2024-10-17 11:49:45 +00:00
depends_on:
postgresql:
condition: service_healthy
2024-10-03 17:26:27 +00:00
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:47334/api/util/ping"]
interval: 30s
2024-10-17 11:49:45 +00:00
timeout: 5s
retries: 15
2024-10-17 02:00:42 +00:00
postgresql:
image: postgres:16-alpine
volumes:
2024-10-17 11:49:45 +00:00
- mindsdb-postgresql-data:/var/lib/postgresql/data
2024-10-17 02:00:42 +00:00
environment:
2024-10-17 11:49:45 +00:00
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
- POSTGRES_DB=${POSTGRES_DB:-mindsdb-db}
2024-10-17 02:00:42 +00:00
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
2024-10-17 11:49:45 +00:00
interval: 10s
timeout: 5s
retries: 15