-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 859 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (39 loc) · 859 Bytes
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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: mcp_tracker
POSTGRES_USER: mcp
POSTGRES_PASSWORD: secret
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U mcp"]
interval: 10s
timeout: 5s
retries: 5
mcp-server:
build: .
ports:
- "8080:8080"
environment:
DATABASE_URL: postgres://mcp:secret@postgres:5432/mcp_tracker?sslmode=disable
PORT: 8080
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
web:
build:
context: ./web
dockerfile: Dockerfile
ports:
- "80:80"
depends_on:
mcp-server:
condition: service_started
restart: unless-stopped
volumes:
postgres_data: