WORKING!
This commit is contained in:
@@ -1,39 +1,49 @@
|
|||||||
# documentation: https://grafana.com
|
|
||||||
# slogan: Grafana is the open source analytics & monitoring solution for every database.
|
|
||||||
# tags: grafana,analytics,monitoring,dashboard
|
# documentation: https://docs.mindsdb.com/what-is-mindsdb
|
||||||
# logo: svgs/grafana.svg
|
# slogan: MindsDB is the platform for building AI from enterprise data, enabling smarter organizations.
|
||||||
# port: 3000
|
# tags: mysql, postgresdb, machine-learning, ai
|
||||||
|
# logo: svgs/mindsdb.png
|
||||||
|
# port: 47334
|
||||||
|
|
||||||
services:
|
services:
|
||||||
grafana:
|
mindsdb:
|
||||||
image: grafana/grafana-oss
|
image: mindsdb/mindsdb
|
||||||
|
restart: always
|
||||||
|
container_name: mindsdb
|
||||||
environment:
|
environment:
|
||||||
- SERVICE_FQDN_GRAFANA_3000
|
- SERVICE_FQDN_MINDSDB_47334
|
||||||
- GF_SERVER_ROOT_URL=${SERVICE_FQDN_GRAFANA}
|
- SERVICE_FQDN_API_47335=/api
|
||||||
- GF_SERVER_DOMAIN=${SERVICE_FQDN_GRAFANA}
|
- MINDSDB_DOCKER_ENV=true
|
||||||
- GF_SECURITY_ADMIN_PASSWORD=${SERVICE_PASSWORD_GRAFANA}
|
- MINDSDB_STORAGE_DIR=/mindsdb/var
|
||||||
- GF_DATABASE_TYPE=postgres
|
- FLASK_DEBUG=1 # This will make sure http requests are logged regardless of log level
|
||||||
- GF_DATABASE_HOST=postgresql
|
- OPENAI_API_KEY=$OPENAI_API_KEY
|
||||||
- GF_DATABASE_USER=$SERVICE_USER_POSTGRES
|
- LANGFUSE_HOST=$LANGFUSE_HOST
|
||||||
- GF_DATABASE_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
- LANGFUSE_PUBLIC_KEY=$LANGFUSE_PUBLIC_KEY
|
||||||
- GF_DATABASE_NAME=${POSTGRES_DB:-grafana}
|
- LANGFUSE_SECRET_KEY=$LANGFUSE_SECRET_KEY
|
||||||
|
- LANGFUSE_RELEASE="local"
|
||||||
|
# - LANGFUSE_DEBUG="True"
|
||||||
|
- LANGFUSE_TIMEOUT="10"
|
||||||
|
- LANGFUSE_SAMPLE_RATE="1.0"
|
||||||
|
- MINDSDB_DB_CON=postgresql://postgres:postgres@postgresql
|
||||||
|
# ports:
|
||||||
|
# - 47335:47335
|
||||||
|
# - 47336:47336
|
||||||
volumes:
|
volumes:
|
||||||
- grafana-data:/var/lib/grafana
|
- mindsdb-data:/mindsdb/var
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://127.0.0.1:3000/api/health"]
|
test: ["CMD", "curl", "-f", "http://localhost:47334/api/util/ping"]
|
||||||
interval: 5s
|
interval: 30s
|
||||||
timeout: 20s
|
timeout: 4s
|
||||||
retries: 10
|
retries: 100
|
||||||
depends_on:
|
|
||||||
- postgresql
|
|
||||||
postgresql:
|
postgresql:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
volumes:
|
volumes:
|
||||||
- postgresql-data:/var/lib/postgresql/data
|
- postgresql-data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=$SERVICE_USER_POSTGRES
|
- POSTGRES_USER=postgres
|
||||||
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
- POSTGRES_PASSWORD=postgres
|
||||||
- POSTGRES_DB=${POSTGRES_DB:-grafana}
|
- POSTGRES_DB=mindsdb
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
|
@@ -8,6 +8,7 @@ services:
|
|||||||
mindsdb:
|
mindsdb:
|
||||||
image: mindsdb/mindsdb
|
image: mindsdb/mindsdb
|
||||||
restart: always
|
restart: always
|
||||||
|
container_name: mindsdb
|
||||||
environment:
|
environment:
|
||||||
- SERVICE_FQDN_MINDSDB_47334
|
- SERVICE_FQDN_MINDSDB_47334
|
||||||
- SERVICE_FQDN_API_47335=/api
|
- SERVICE_FQDN_API_47335=/api
|
||||||
@@ -22,6 +23,7 @@ services:
|
|||||||
# - LANGFUSE_DEBUG="True"
|
# - LANGFUSE_DEBUG="True"
|
||||||
- LANGFUSE_TIMEOUT="10"
|
- LANGFUSE_TIMEOUT="10"
|
||||||
- LANGFUSE_SAMPLE_RATE="1.0"
|
- LANGFUSE_SAMPLE_RATE="1.0"
|
||||||
|
- MINDSDB_DB_CON='postgresql://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@postgresql'
|
||||||
# ports:
|
# ports:
|
||||||
# - 47335:47335
|
# - 47335:47335
|
||||||
# - 47336:47336
|
# - 47336:47336
|
||||||
@@ -32,3 +34,16 @@ services:
|
|||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 4s
|
timeout: 4s
|
||||||
retries: 100
|
retries: 100
|
||||||
|
postgresql:
|
||||||
|
image: postgres:16-alpine
|
||||||
|
volumes:
|
||||||
|
- postgresql-data:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=$SERVICE_USER_POSTGRES
|
||||||
|
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
||||||
|
- POSTGRES_DB=${POSTGRES_DB:-mindsdb}
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 20s
|
||||||
|
retries: 10
|
||||||
|
Reference in New Issue
Block a user