-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.backend.yml
More file actions
82 lines (76 loc) · 2.34 KB
/
Copy pathdocker-compose.backend.yml
File metadata and controls
82 lines (76 loc) · 2.34 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
# Supported local/dev stack for the active Patra backend.
# This file replaces the suspended Neo4j-oriented legacy/docker-compose.yml for new work.
services:
postgres:
image: postgres:16
container_name: patra-postgres
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-patra}
POSTGRES_USER: ${POSTGRES_USER:-patra}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-patra-dev-password}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- patra_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-patra} -d ${POSTGRES_DB:-patra}"]
interval: 10s
timeout: 5s
retries: 5
networks:
- default
- ckn-network
patra-backend:
build:
context: .
dockerfile: rest_server/Dockerfile
container_name: patra-backend
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
PORT: 8000
DATABASE_URL: ${DATABASE_URL:-postgresql://${POSTGRES_USER:-patra}:${POSTGRES_PASSWORD:-patra-dev-password}@postgres:5432/${POSTGRES_DB:-patra}}
PATRA_ASSET_INGEST_KEYS_JSON: '{"org-a":"change-me"}'
ENABLE_DOMAIN_EXPERIMENTS: ${ENABLE_DOMAIN_EXPERIMENTS:-true}
ports:
- "${BACKEND_PORT:-8000}:8000"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/healthz', timeout=3)"]
interval: 30s
timeout: 5s
start_period: 15s
retries: 3
patra-mcp:
build:
context: .
dockerfile: mcp_server/Dockerfile
container_name: patra-mcp
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://${POSTGRES_USER:-patra}:${POSTGRES_PASSWORD:-patra-dev-password}@postgres:5432/${POSTGRES_DB:-patra}
ports:
- "${MCP_PORT:-8050}:8050"
cloudbeaver:
image: dbeaver/cloudbeaver:latest
container_name: patra-cloudbeaver
ports:
- "8978:8978"
volumes:
- cloudbeaver_data:/opt/cloudbeaver/workspace
depends_on:
postgres:
condition: service_healthy
# Uncomment to enable external network for CKN integration:
networks:
ckn-network:
external: true
name: ckn-network
volumes:
patra_postgres_data:
cloudbeaver_data: