-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.38 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
services:
db:
image: postgres:17
container_name: lawpulse-db
environment:
POSTGRES_DB: lawpulse
POSTGRES_USER: lawpulse
POSTGRES_PASSWORD: lawpulse
ports:
- "5432:5432"
volumes:
- lawpulse_postgres_data:/var/lib/postgresql/data
redis:
image: redis:7
container_name: lawpulse-redis
ports:
- "6379:6379"
backend:
build:
context: ./backend
container_name: lawpulse-backend
command: sh -c "python manage.py migrate && daphne -b 0.0.0.0 -p 8000 config.asgi:application"
environment:
DEBUG: "True"
SECRET_KEY: docker-secret-key-change-me
ALLOWED_HOSTS: 127.0.0.1,localhost,backend
CORS_ALLOWED_ORIGINS: http://127.0.0.1:5173,http://localhost:5173
DATABASE_URL: postgres://lawpulse:lawpulse@db:5432/lawpulse
REDIS_URL: redis://redis:6379/0
LLM_MODEL: gpt-4o-mini
OPENAI_API_KEY: ""
OPENAI_BASE_URL: ""
volumes:
- ./backend:/app
ports:
- "8000:8000"
depends_on:
- db
- redis
frontend:
build:
context: ./frontend
container_name: lawpulse-frontend
environment:
VITE_API_BASE_URL: http://127.0.0.1:8000
VITE_WS_BASE_URL: ws://127.0.0.1:8000
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- "5173:5173"
depends_on:
- backend
volumes:
lawpulse_postgres_data: