-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (77 loc) · 2.27 KB
/
Copy pathdocker-compose.yml
File metadata and controls
82 lines (77 loc) · 2.27 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
services:
# Check if postgres service is still needed.
# User is using Supabase, but keeping local postgres might be useful for offline dev?
# Prompt implied "deploy using free versions", so Supabase is the main DB.
# We can keep postgres service but it won't be used by the app unless we change env.
# Actually, let's COMMENT IT OUT to avoid confusion and resource usage,
# but keep it there if they want to revert.
# postgres:
# image: postgres:15-alpine
# container_name: compass_db
# environment:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: password
# POSTGRES_DB: compass_db
# ports:
# - "5432:5432"
# volumes:
# - ./init.sql:/docker-entrypoint-initdb.d/init.sql
core_service:
build:
context: ./backend/core_service
container_name: compass_core
ports:
- "8083:8083"
environment:
- SERVER_PORT=8083
- DATABASE_URL=${DATABASE_URL}
- GITHUB_SERVICE_URL=http://github-service:8081
- AI_SERVICE_URL=http://ai-service:8082
- JWT_SECRET=${JWT_SECRET}
- FRONTEND_URL=http://localhost:3000
depends_on:
- github-service
- ai-service
auth-service:
build:
context: ./backend/auth-service
container_name: compass_auth
ports:
- "8080:8080"
environment:
- PORT=8080
- GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID}
- GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET}
- JWT_SECRET=${JWT_SECRET}
- FRONTEND_URL=http://localhost:3000
- CORE_SERVICE_URL=http://core_service:8083
github-service:
build:
context: ./backend/github-service
container_name: compass_github
ports:
- "8081:8081"
environment:
- PORT=8081
- GITHUB_TOKEN=${GITHUB_TOKEN}
- FRONTEND_URL=http://localhost:3000
ai-service:
build:
context: ./backend/ai-service
container_name: compass_ai
ports:
- "8082:8082"
environment:
- AI_SERVICE_PORT=8082
- GEMINI_API_KEY=${GEMINI_API_KEY}
- GROQ_API_KEY=${GROQ_API_KEY}
- LLM_PROVIDER=${LLM_PROVIDER}
- LLM_MODEL=${LLM_MODEL}
notification-service:
build:
context: ./backend/notification-service
container_name: compass_notification
ports:
- "8084:8084"
environment:
- PORT=8084