-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (49 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
54 lines (49 loc) · 1.04 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
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile.prod
environment:
- ENV=production
- REDIS_HOST=redis
- POSTGRES_HOST=postgres
env_file:
- ./backend/.env
volumes:
- ./data/vectorstore:/app/vectorstore
- ./data/cache:/app/cache
- ./data/logs:/app/logs
- ./data/uploads:/app/uploads
ports:
- "8000:8000"
depends_on:
- redis
- postgres
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.prod
ports:
- "3000:80"
depends_on:
- backend
restart: unless-stopped
redis:
image: redis:7-alpine
volumes:
- ./data/redis:/data
restart: unless-stopped
postgres:
image: postgres:15-alpine
environment:
POSTGRES_DB: chaxai
POSTGRES_USER: chaxai
POSTGRES_PASSWORD: chaxai123
volumes:
- ./data/postgres:/var/lib/postgresql/data
restart: unless-stopped
networks:
default:
name: chaxai-network