-
Notifications
You must be signed in to change notification settings - Fork 111
/
docker-compose.yml
59 lines (55 loc) · 1.26 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: langchain-extract
services:
postgres:
# Careful if bumping postgres version.
# Make sure to keep in sync with CI
# version if being tested on CI.
image: postgres:16
expose:
- "5432"
ports:
- "5432:5432"
environment:
POSTGRES_DB: langchain
POSTGRES_USER: langchain
POSTGRES_PASSWORD: langchain
healthcheck:
test: ["CMD-SHELL", "pg_isready -U langchain -d langchain -W langchain"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres_data:/var/lib/postgresql/data
backend:
build:
context: .
dockerfile: ./backend/Dockerfile
target: development
env_file:
- .local.env
environment:
- PG_HOST=postgres
# Define CORS origins for dev work on UI
- CORS_ORIGINS=http://localhost:3000
ports:
- "8000:8000" # Backend is accessible on localhost:8100
depends_on:
- postgres
volumes:
- ./backend:/backend
frontend:
build:
context: ./frontend
dockerfile: ./Dockerfile
target: development
ports:
- "3000:3000"
environment:
- NODE_ENV=development
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- backend
volumes:
postgres_data: