Skip to content

Commit

Permalink
Merge pull request #130 from langchain-ai/nc/18jan/docker-compose-ii
Browse files Browse the repository at this point in the history
Some more fixes for docker compose
  • Loading branch information
nfcampos authored Jan 18, 2024
2 parents 7240010 + 283fb71 commit bb0a82f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ version: "3"

services:
redis:
container_name: 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:
Expand All @@ -20,16 +21,16 @@ services:
volumes:
- ./backend:/backend
environment:
REDIS_URL: "redis://redis:6379"
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://backend:8000"
VITE_BACKEND_URL: "http://opengpts-backend:8000"

0 comments on commit bb0a82f

Please sign in to comment.