Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (79 loc) · 2.14 KB
/
Copy pathdocker-compose.yml
File metadata and controls
83 lines (79 loc) · 2.14 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
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./sql:/docker-entrypoint-initdb.d # sirf fresh/empty volume par ek baar chalta hai
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER}"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:7-alpine
restart: unless-stopped
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 10
server:
build:
context: ./server
restart: unless-stopped
# network_mode: "host"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
environment:
NODE_ENV: production
PORT: 5000
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: ${DB_NAME}
REDIS_HOST: redis
REDIS_PORT: 6379
JWT_SECRET: ${JWT_SECRET}
CLAUDE_API_KEY: ${CLAUDE_API_KEY}
GRAPH_CLIENT_ID: ${GRAPH_CLIENT_ID}
GRAPH_CLIENT_SECRET: ${GRAPH_CLIENT_SECRET}
GRAPH_TENANT_ID: ${GRAPH_TENANT_ID}
GRAPH_SCOPE: ${GRAPH_SCOPE}
ALLOWED_ORIGINS: ${ALLOWED_ORIGINS}
# Python extraction service abhi is repo ka part nahi hai (alag machine/service pe hai) —
# docker network se accessible URL yahan daalo, ya host machine ho to host.docker.internal use karo
PYTHON_API_URL: ${PYTHON_API_URL}
ports:
- "5000:5000"
volumes:
- uploads_data:/app/uploads
workspace:
build:
context: ./workspace
args:
VITE_API_BASE_URL: ${VITE_API_BASE_URL:-}
VITE_GRAPH_BASE_URL: ${VITE_GRAPH_BASE_URL}
VITE_APP_NAME: ${VITE_APP_NAME:-MetaVal}
VITE_CLIENT_ID: ${VITE_CLIENT_ID}
VITE_TENANT_ID: ${VITE_TENANT_ID}
restart: unless-stopped
depends_on:
- server
ports:
- "8080:80"
volumes:
pgdata:
uploads_data: