forked from langchain-ai/opengpts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (40 loc) · 1.09 KB
/
docker-compose.yml
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
version: "3"
services:
postgres-setup:
image: migrate/migrate
volumes:
- ./backend/migrations:/migrations
env_file:
- .env
command: [ "-path", "/migrations", "-database", "postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST:$POSTGRES_PORT/$POSTGRES_DB?sslmode=require", "up" ]
backend:
container_name: opengpts-backend
build:
context: backend
ports:
- "8000:8000" # Backend is accessible on localhost:8100
depends_on:
postgres-setup:
condition: service_completed_successfully
env_file:
- .env
volumes:
- ./backend:/backend
environment:
POSTGRES_HOST: "ep-purple-thunder-a5cmbdqz.us-east-2.aws.neon.tech"
AUTH_TYPE: "jwt_local"
command:
- --reload
frontend:
container_name: opengpts-frontend
build:
context: frontend
depends_on:
backend:
condition: service_healthy
volumes:
- ./frontend/src:/frontend/src
ports:
- "5173:5173" # Frontend is accessible on localhost:5173
environment:
VITE_BACKEND_URL: "https://api.epsimoai.net"