-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
69 lines (62 loc) · 1.69 KB
/
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
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
version: "3.9"
services:
console:
image: nl2sqlapp
build:
context: .
container_name: nl2sqlapp_console
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- db
- model_server
environment:
DATABASE_NAME: ${DATABASE_NAME:-DB}
DATABASE_USER: ${DATABASE_USER:-USER}
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-PASSWORD}
DATABASE_HOST: ${DATABASE_HOST:-db}
DJANGO_SECRET_KEY: ${DJANGO_SETTINGS_MODULE}
MODEL_SERVER_ENDPOINT: ${MODEL_SERVER_ENDPOINT:-http://model_server:11434}
AVAILABLE_MODELS: ${AVAILABLE_MODELS:-llama2}
circle_ci_console:
image: nl2sqlapp
build:
context: .
container_name: circle_ci_console
depends_on:
- db_ci
- model_server
environment:
DATABASE_NAME: DB
DATABASE_USER: USER
DATABASE_PASSWORD: PASSWORD
DATABASE_HOST: db_ci
DJANGO_SECRET_KEY: dummy
MODEL_SERVER_ENDPOINT: http://model_server:11434
AVAILABLE_MODELS: llama2
DOWNLOAD_MODELS_ON_FLY: llama2
db:
image: postgres
environment:
POSTGRES_PASSWORD: ${DATABASE_PASSWORD:-PASSWORD}
POSTGRES_USER: ${DATABASE_USER:-USER}
POSTGRES_DB: ${DATABASE_NAME:-DB}
volumes:
- pgdata:/var/lib/postgresql/data
restart: on-failure
db_ci:
image: postgres
environment:
POSTGRES_PASSWORD: ${DATABASE_PASSWORD:-PASSWORD}
POSTGRES_USER: ${DATABASE_USER:-USER}
POSTGRES_DB: ${DATABASE_NAME:-DB}
restart: on-failure
model_server:
image: ollama/ollama:latest
volumes:
- ollamadata:/root/.ollama
volumes:
pgdata:
ollamadata: