-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
86 lines (79 loc) · 2.33 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
86 lines (79 loc) · 2.33 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
x-server: &base_server_setup
build:
context: ./
stdin_open: true
tty: true
environment: &base_server_environments
DEBUG: ${DEBUG:-true}
APP_ENVIRONMENT: ${APP_ENVIRONMENT:-DEV}
DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY:?error}
# Domain configs
APP_DOMAIN: ${APP_DOMAIN:-http://localhost:8000}
FRONTEND_DOMAIN: ${FRONTEND_DOMAIN:-http://localhost:3000}
SESSION_COOKIE_DOMAIN: ${SESSION_COOKIE_DOMAIN:-localhost}
CSRF_COOKIE_DOMAIN: ${CSRF_COOKIE_DOMAIN:-localhost}
# Postgres
POSTGRES_DB: ${POSTGRES_DB:-ercs}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_HOST: ${POSTGRES_HOST:-db}
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
# Redis / Celery
CELERY_REDIS_URL: ${CELERY_REDIS_URL:-redis://redis:6379/0}
CACHE_REDIS_URL: ${CACHE_REDIS_URL:-redis://redis:6379/1}
TEST_CACHE_REDIS_URL: ${TEST_CACHE_REDIS_URL:-redis://redis:6379/11}
# LLM
LLM_MODEL_NAME: ${LLM_MODEL_NAME:-qwen2.5vl:7b}
LLM_OLLAMA_BASE_URL: ${LLM_OLLAMA_BASE_URL:-https://test.ollama.com}
LLM_EMBEDDING_MODEL: ${LLM_EMBEDDING_MODEL:-nomic-embed-text:v1.5}
env_file:
- path: ${BACKEND_ENV_FILE:-.env}
required: false
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./:/code/
- ipython_data_local:/root/.ipython/profile_default # persist ipython data, including ipython history
depends_on:
- db
- redis
x-worker: &base_worker_setup
<<: *base_server_setup
restart: unless-stopped
environment:
<<: *base_server_environments
APP_TYPE: "WORKER"
services:
db:
image: pgvector/pgvector:0.8.1-pg17-trixie
environment:
POSTGRES_DB: ercs
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres_data17:/var/lib/postgresql/data
redis:
image: redis:8-alpine
volumes:
- redis_data:/data
web:
<<: *base_server_setup
command: ["/code/misc/dev/run_web.sh"]
environment:
<<: *base_server_environments
APP_TYPE: "WEB"
ports:
- 127.0.0.1:8000:8000
depends_on:
- db
- redis
worker:
<<: *base_worker_setup
command: ["/code/misc/dev/run_worker.sh"]
environment:
<<: *base_server_environments
APP_TYPE: "WORKER"
volumes:
postgres_data17:
redis_data:
ipython_data_local: