forked from mindsdb/mindsdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
33 lines (31 loc) · 970 Bytes
/
docker-compose.yml
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
version: "3.2"
services:
mindsdb:
image: mindsdb/mindsdb:devel
# If you want to build the image instead:
# build:
# context: .
# dockerfile: docker/mindsdb.Dockerfile
# target: dev # Makes sure dev dependencies are installed
restart: always
ports:
- '47334:47334'
- '47335:47335'
- '47336:47336'
# watchfiles will reload the app when python files are changed
command: bash -c "watchfiles --filter python 'python -m mindsdb' ."
environment:
MINDSDB_DOCKER_ENV: "True"
MINDSDB_STORAGE_DIR: "/mindsdb/var"
FLASK_DEBUG: 1 # This will make sure http requests are logged regardless of log level
# MINDSDB_LOG_LEVEL: "DEBUG"
# OPENAI_API_KEY: "..."
volumes:
- type: bind
source: .
target: /mindsdb
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:47334/api/util/ping"]
interval: 30s
timeout: 4s
retries: 100