forked from langchain-ai/opengpts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 811 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (35 loc) · 811 Bytes
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
version: "3"
services:
redis:
container_name: opengpts-redis
image: redis/redis-stack-server:latest
ports:
- "6379:6379"
volumes:
- ./redis-volume:/data
backend:
container_name: opengpts-backend
build:
context: backend
ports:
- "8100:8000" # Backend is accessible on localhost:8100
depends_on:
- redis
env_file:
- .env
volumes:
- ./backend:/backend
environment:
REDIS_URL: "redis://opengpts-redis:6379"
command:
- --reload
frontend:
container_name: opengpts-frontend
build:
context: frontend
volumes:
- ./frontend/src:/frontend/src
ports:
- "5173:5173" # Frontend is accessible on localhost:5173
environment:
VITE_BACKEND_URL: "http://opengpts-backend:8000"