forked from analytiq-hub/doc-router
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
105 lines (102 loc) · 3.28 KB
/
docker-compose.yml
File metadata and controls
105 lines (102 loc) · 3.28 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
93
94
95
96
97
98
99
100
101
102
103
104
105
services:
frontend:
image: analytiqhub/doc-router-frontend:latest
build:
context: .
dockerfile: Dockerfile
target: frontend
args:
# Build-time environment
- NEXT_PUBLIC_FASTAPI_FRONTEND_URL=${NEXT_PUBLIC_FASTAPI_FRONTEND_URL:-http://localhost:8000}
- NODE_ENV=production
environment:
# Runtime environment
- ENV=${ENV:-dev}
- MONGODB_URI=${MONGODB_URI:-mongodb://YOUR_HOST_IP:27017}
- FASTAPI_BACKEND_URL=${FASTAPI_BACKEND_URL:-http://localhost:8000}
- NEXTAUTH_URL=${NEXTAUTH_URL:-http://localhost:3000}
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET:-default_secret_for_development}
- AUTH_GITHUB_ID=${AUTH_GITHUB_ID}
- AUTH_GITHUB_SECRET=${AUTH_GITHUB_SECRET}
- AUTH_GOOGLE_ID=${AUTH_GOOGLE_ID}
- AUTH_GOOGLE_SECRET=${AUTH_GOOGLE_SECRET}
- NEXT_PUBLIC_FASTAPI_FRONTEND_URL=${NEXT_PUBLIC_FASTAPI_FRONTEND_URL:-http://localhost:8000}
command: sh -c "cd /app/frontend && npm run start"
restart: unless-stopped
ports:
- "3000:3000"
networks:
- doc-router-network
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 512M
extra_hosts:
- "host.docker.internal:host-gateway"
backend:
image: analytiqhub/doc-router-backend:latest
build:
context: .
dockerfile: Dockerfile
target: backend
environment:
# Runtime environment
- ENV=${ENV:-dev}
- MONGODB_URI=${MONGODB_URI:-mongodb://YOUR_HOST_IP:27017}
- NEXTAUTH_URL=${NEXTAUTH_URL:-http://localhost:3000}
- FASTAPI_ROOT_PATH=${FASTAPI_ROOT_PATH:-/fastapi}
- FASTAPI_SECRET=${FASTAPI_SECRET:-default_fastapi_secret_for_development}
- ADMIN_EMAIL=${ADMIN_EMAIL:-admin}
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_S3_BUCKET_NAME=${AWS_S3_BUCKET_NAME}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- GEMINI_API_KEY=${GEMINI_API_KEY}
- GROQ_API_KEY=${GROQ_API_KEY}
- MISTRAL_API_KEY=${MISTRAL_API_KEY}
- SES_FROM_EMAIL=${SES_FROM_EMAIL}
command: sh -c "cd /app/packages && uvicorn docrouter_app.main:app --host 0.0.0.0 --port 8000"
restart: unless-stopped
ports:
- "8000:8000"
networks:
- doc-router-network
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 512M
extra_hosts:
- "host.docker.internal:host-gateway"
worker:
image: analytiqhub/doc-router-backend:latest
build:
context: .
dockerfile: Dockerfile
target: backend
environment:
# Runtime environment
- ENV=${ENV:-dev}
- N_WORKERS=${N_WORKERS:-1}
- MONGODB_URI=${MONGODB_URI:-mongodb://YOUR_HOST_IP:27017}
- FASTAPI_SECRET=${FASTAPI_SECRET:-default_fastapi_secret_for_development}
command: sh -c "cd /app/packages/worker && python3 worker.py"
restart: unless-stopped
networks:
- doc-router-network
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 512M
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
doc-router-network:
driver: bridge