-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
87 lines (80 loc) · 2.03 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
87 lines (80 loc) · 2.03 KB
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
84
85
86
87
services:
postgres:
image: postgres:15
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
POSTGRES_DB: dcup
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7.2.4
restart: unless-stopped
ports:
- "${REDIS_DB_PORT:-6379}:6379"
volumes:
- redis_data:/data
qdrant:
image: qdrant/qdrant
restart: unless-stopped
environment:
QDRANT__SERVICE__GRPC_PORT: 6334
ports:
- "6333:6333"
volumes:
- qdrant_data:/data
parser:
build:
context: ./svc_parser/
dockerfile: Dockerfile
ports:
- "9000:9000"
app:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
environment:
NODE_ENV: production
PORT: 8080
HOSTNAME: "0.0.0.0"
DCUP_DOC_URL: https://dcup.dev/docs
NEXTAUTH_URL: http://localhost:8080
DCUP_PARSER: http://parser:9000
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
API_SECRET: ${API_SECRET}
# POSTGRES
DRIZZLE_DATABASE_URL: postgres://postgres:root@postgres:5432/dcup
# Google Auth
NEXT_PUBLIC_GOOGLE_CLIENT_ID: ${NEXT_PUBLIC_GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
NEXT_PUBLIC_GOOGLE_API_KEY: ${NEXT_PUBLIC_GOOGLE_API_KEY}
# Github Auth
AUTH_GITHUB_ID: ${AUTH_GITHUB_ID}
AUTH_GITHUB_SECRET: ${AUTH_GITHUB_SECRET}
# REDIS
REDIS_DB_ADDRESS: redis
REDIS_DB_PORT: 6379
REDIS_DB_PASSWORD: ${REDIS_DB_PASSWORD}
REDIS_DB_DATABASE: ${REDIS_DB_DATABASE}
# QDRANT
QDRANT_DB_URL: http://qdrant:6333
# Open Ai
OPENAI_KEY: ${OPENAI_KEY}
OPENAI_ENDPOINT: ${OPENAI_ENDPOINT}
OPENAI_EMBEDDINGS_MODEL: ${OPENAI_EMBEDDINGS_MODEL}
OPENAI_AGENT_MODEL: ${OPENAI_AGENT_MODEL}
ports:
- "8080:8080"
depends_on:
- postgres
- redis
- qdrant
- parser
volumes:
postgres_data:
redis_data:
qdrant_data: