Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
117 lines (112 loc) · 2.66 KB
/
Copy pathdocker-compose.yml
File metadata and controls
117 lines (112 loc) · 2.66 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
106
107
108
109
110
111
112
113
114
115
116
117
#
# Praxis Docker Compose configuration.
#
# Bundles RabbitMQ + the Praxis container. The Praxis container
# runs systemd as PID 1 so `praxisctl` works the same way it does
# on a native Linux install:
#
# docker compose exec praxis praxisctl status
# docker compose exec praxis praxisctl set-rabbitmqurl <url>
#
# Access:
# MCP Server: http://localhost:8585/sse
# Claude Bridge CCRv1: ws://localhost:8586
# Claude Bridge CCRv2: http://localhost:8587
# RabbitMQ Management: http://localhost:15672 (praxis/praxis)
#
services:
rabbitmq:
image: rabbitmq:3-management
hostname: rabbitmq
environment:
RABBITMQ_DEFAULT_USER: praxis
RABBITMQ_DEFAULT_PASS: praxis
ports:
- "5672:5672"
- "15672:15672"
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 10s
timeout: 5s
retries: 5
volumes:
- rabbitmq_data:/var/lib/rabbitmq
restart: unless-stopped
postgres:
image: postgres:16-alpine
hostname: postgres
environment:
POSTGRES_USER: praxis
POSTGRES_PASSWORD: praxis_db_2024
POSTGRES_DB: praxis
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U praxis"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
profiles:
- postgres
praxis:
build:
context: .
args:
PRAXIS_VERSION: ${PRAXIS_VERSION:-1.0.0}
depends_on:
rabbitmq:
condition: service_healthy
#
# systemd as PID 1 needs cgroup access + a few writable tmpfs mounts.
# `cgroup: host` works for both cgroupv1 and cgroupv2 hosts.
#
cgroup: host
privileged: true
tmpfs:
- /tmp
- /run
- /run/lock
volumes:
- praxis_data:/var/lib/praxis
- /sys/fs/cgroup:/sys/fs/cgroup:rw
environment:
RUST_LOG: info
ports:
- "${PRAXIS_MCP_PORT:-8585}:${PRAXIS_MCP_PORT:-8585}"
- "8586:8586"
- "8587:8587"
restart: unless-stopped
praxis-postgres:
build:
context: .
args:
PRAXIS_VERSION: ${PRAXIS_VERSION:-1.0.0}
depends_on:
rabbitmq:
condition: service_healthy
postgres:
condition: service_healthy
cgroup: host
privileged: true
tmpfs:
- /tmp
- /run
- /run/lock
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
environment:
RUST_LOG: info
ports:
- "${PRAXIS_MCP_PORT:-8585}:${PRAXIS_MCP_PORT:-8585}"
- "8586:8586"
- "8587:8587"
restart: unless-stopped
profiles:
- postgres
volumes:
rabbitmq_data:
postgres_data:
praxis_data: