-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (46 loc) · 1.27 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (46 loc) · 1.27 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
services:
# PostgreSQL database
postgres:
image: postgres:16-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: aistarterkit
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
# Django application service
app:
build:
context: .
dockerfile: Dockerfile.dev
depends_on:
postgres:
condition: service_healthy
ports:
- "18000:8000" # Django + WebSocket (host:container)
- "14000:4000" # LiteLLM proxy (host:container)
volumes:
# Mount source code for live reload
- .:/usr/src/app
# Persist node_modules (avoid overwriting with local)
- /usr/src/app/node_modules
env_file:
- .env
environment:
# PostgreSQL connection (for Django)
DATABASE_URL: postgres://postgres:postgres@postgres:5432/aistarterkit
# Development settings
ENVIRONMENT: development
LITELLM_BASE_URL: http://127.0.0.1:4000
LITELLM_MASTER_KEY: ${LITELLM_SERVICE_KEY}
stdin_open: true
tty: true
volumes:
postgres_data: