-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (80 loc) · 2.64 KB
/
docker-compose.yml
File metadata and controls
92 lines (80 loc) · 2.64 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
88
89
90
91
92
version: '3.8'
services:
postgres:
image: postgres:15
container_name: pipelinepal_postgres
environment:
POSTGRES_DB: pipelinepal
POSTGRES_USER: pipelinepal
POSTGRES_PASSWORD: pipelinepal123
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: pipelinepal_redis
ports:
- "6379:6379"
restart: unless-stopped
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: pipelinepal_backend
environment:
# Database Configuration (using internal Docker network)
DATABASE_URL: postgresql://pipelinepal:pipelinepal123@postgres:5432/pipelinepal
# Redis Configuration (using internal Docker network)
REDIS_URL: redis://redis:6379
# Application Configuration
SECRET_KEY: your_secret_key_here_change_in_production
ALGORITHM: HS256
ACCESS_TOKEN_EXPIRE_MINUTES: 30
# CORS Configuration
ALLOWED_ORIGINS: '["http://localhost:3000", "http://127.0.0.1:3000"]'
# Logging
LOG_LEVEL: INFO
# External API Keys (you'll need to set these)
OPENAI_API_KEY: ${OPENAI_API_KEY:-your_openai_api_key_here}
OPENAI_MODEL: gpt-4
OPENAI_EMBEDDING_MODEL: text-embedding-ada-002
PINECONE_API_KEY: ${PINECONE_API_KEY:-your_pinecone_api_key_here}
PINECONE_ENVIRONMENT: ${PINECONE_ENVIRONMENT:-your_pinecone_environment_here}
PINECONE_INDEX_NAME: pipelinepal-candidates
GREENHOUSE_API_KEY: ${GREENHOUSE_API_KEY:-your_greenhouse_api_key_here}
GREENHOUSE_BOARD_TOKEN: ${GREENHOUSE_BOARD_TOKEN:-your_greenhouse_board_token_here}
volumes:
# Mount source code for hot reload
- ./backend:/app
# Keep dependencies in named volume for better performance
- backend_dependencies:/usr/local/lib/python3.9/site-packages
ports:
- "8000:8000"
depends_on:
- postgres
- redis
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
container_name: pipelinepal_frontend
environment:
# API URL for client-side requests (browser needs localhost)
NEXT_PUBLIC_API_URL: http://localhost:8000
volumes:
# Mount source code for hot reload
- ./frontend:/app
# Keep node_modules in named volume for better performance
- frontend_node_modules:/app/node_modules
ports:
- "3000:3000"
depends_on:
- backend
restart: unless-stopped
volumes:
postgres_data:
backend_dependencies:
frontend_node_modules: