-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.production.yml
More file actions
68 lines (63 loc) · 1.81 KB
/
docker-compose.production.yml
File metadata and controls
68 lines (63 loc) · 1.81 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
services:
postgres:
image: postgres:17-alpine
container_name: packmind-prod-postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: packmind
ports:
- '5432:5432'
volumes:
- postgres-data-prod:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 5s
retries: 5
install-dependencies:
image: node:22.17.0-alpine3.21
container_name: packmind-prod-install-deps
volumes:
- .:/packmind
working_dir: /packmind
entrypoint: npm install
build-mcp-server:
image: node:22.17.0-alpine3.21
container_name: packmind-prod-build-mcp-server
volumes:
- .:/packmind
working_dir: /packmind
entrypoint: node_modules/.bin/nx run mcp-server:build:production
depends_on:
install-dependencies:
condition: service_completed_successfully
install-mcp-server:
image: node:22.17.0-alpine3.21
container_name: packmind-prod-install-mcp-server
volumes:
- ./dist/apps/mcp-server:/mcp-server
working_dir: /mcp-server
entrypoint: npm i
depends_on:
build-mcp-server:
condition: service_completed_successfully
mcp-server:
image: node:22.17.0-alpine3.21
container_name: packmind-prod-mcp-server
volumes:
- ./dist/apps/mcp-server:/mcp-server
working_dir: /mcp-server
ports:
- '3001:3001'
entrypoint: node main.js --host=0.0.0.0 --verbose
environment:
DATABASE_URL: postgres://postgres:postgres@packmind-prod-postgres:5432/packmind
REDIS_URI: ${REDIS_URI:-redis://localhost:6379}
depends_on:
install-mcp-server:
condition: service_completed_successfully
postgres:
condition: service_healthy
volumes:
postgres-data-prod: