-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (78 loc) · 2.02 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
services:
postgres:
image: 'postgres:latest'
environment:
- POSTGRES_PASSWORD=${PG_PASSWORD}
- POSTGRES_USER=${PG_USER}
- POSTGRES_DB=${PG_DATABASE}
ports:
- "5555:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./schema.sql:/docker-entrypoint-initdb.d/schema.sql
nginx:
depends_on:
- api
- client
build:
dockerfile: Dockerfile.dev
context: './nginx'
ports:
- '3050:80'
api:
build:
dockerfile: Dockerfile.dev
context: './server'
volumes:
- /app/node_modules
- ./server:/app
environment:
- PG_USER=${PG_USER}
- PG_HOST=${PG_HOST}
- PG_DATABASE=${PG_DATABASE}
- PG_PASSWORD=${PG_PASSWORD}
- PG_PORT=${PG_PORT}
- JSON_SECRET=${JSON_SECRET}
- REFRESH_SECRET=${REFRESH_SECRET}
depends_on:
- postgres
client:
stdin_open: true
build:
dockerfile: Dockerfile.dev
context: './CoVAR-app'
environment:
- NEXT_PUBLIC_API_KEY=${NEXT_PUBLIC_API_KEY}
- NEXT_PUBLIC_AUTH_DOMAIN=${NEXT_PUBLIC_AUTH_DOMAIN}
- NEXT_PUBLIC_PROJECT_ID=${NEXT_PUBLIC_PROJECT_ID}
- NEXT_PUBLIC_STORAGE_BUCKET=${NEXT_PUBLIC_STORAGE_BUCKET}
- NEXT_PUBLIC_MESSAGING_SENDER_ID=${NEXT_PUBLIC_MESSAGING_SENDER_ID}
- NEXT_PUBLIC_APP_ID=${NEXT_PUBLIC_APP_ID}
- NEXT_PUBLIC_MEASUREMENT_ID=${NEXT_PUBLIC_MEASUREMENT_ID}
volumes:
- /app/node_modules
- ./CoVAR-app:/app
langchain:
build:
dockerfile: Dockerfile.dev
context: './langchain'
environment:
- PG_USER=${PG_USER}
- PG_HOST=${PG_HOST}
- PG_DATABASE=${PG_DATABASE}
- PG_PASSWORD=${PG_PASSWORD}
- PG_PORT=${PG_PORT}
- FLASK_ENV=development
- MODEL_TYPE=${MODEL_TYPE}
- OPENAI_MODEL_NAME=${OPENAI_MODEL_NAME}
- API_KEY=${API_KEY}
ports:
- "6000:6000"
volumes:
- /app/node_modules
- ./langchain:/app
depends_on:
- postgres
volumes:
postgres_data:
driver: local