-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
142 lines (129 loc) · 3.41 KB
/
docker-compose.yml
File metadata and controls
142 lines (129 loc) · 3.41 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
services:
agentainer:
build:
context: .
dockerfile: Dockerfile
image: agentainer:latest
container_name: agentainer
working_dir: /workspace
read_only: true
volumes:
- ./:/workspace
- agentainer-home:/home/dev
tmpfs:
- /tmp:size=512M
- /run:size=64M
- /var/run/sshd:size=1M
environment:
- TZ=America/Chicago
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- TS_AUTHKEY=${TS_AUTHKEY:-}
- O365_EMAIL=${O365_EMAIL:-}
- O365_PASSWORD=${O365_PASSWORD:-}
- HIMALAYA_SENDER_NAME=${HIMALAYA_SENDER_NAME:-}
- HIMALAYA_SIGNATURE=${HIMALAYA_SIGNATURE:-}
- HIMALAYA_PASSWORD_CMD=${HIMALAYA_PASSWORD_CMD:-}
ports:
- "2222:22"
tty: true
stdin_open: true
init: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- CHOWN
- SETUID
- SETGID
- DAC_OVERRIDE
- NET_ADMIN
- NET_RAW
devices:
- /dev/net/tun:/dev/net/tun
healthcheck:
test: ["CMD", "bash", "-lc", "/opt/scripts/healthcheck.sh"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
# --- Profile: docker host access (opt-in) ---
# Usage: docker compose --profile dockerhost up -d
agentainer-dockerhost:
extends:
service: agentainer
container_name: agentainer-dh
profiles:
- dockerhost
volumes:
- ./:/workspace
- agentainer-home:/home/dev
- /var/run/docker.sock:/var/run/docker.sock
# --- Profile: MCP Memory Server (opt-in) ---
# Usage: docker compose --profile memory up -d
# Standalone: docker compose -f services/mcp-memory/docker-compose.yml up -d
mcp-memory:
build:
context: ./services/mcp-memory
dockerfile: Dockerfile
container_name: mcp-memory
profiles:
- memory
environment:
- PG_DSN=postgresql://memuser:mempass@mcp-memory-postgres:5432/memorydb
- REDIS_URL=redis://mcp-memory-redis:6379/0
- EMBED_DIM=1536
- EMBED_PROVIDER=${MCP_EMBED_PROVIDER:-stub}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- BLOB_BUCKET=bellie-blobnlie
- LOG_LEVEL=${MCP_LOG_LEVEL:-info}
- MIGRATIONS_DIR=/app/migrations
depends_on:
mcp-memory-postgres:
condition: service_healthy
mcp-memory-redis:
condition: service_healthy
ports:
- "7411:8000"
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import httpx; r=httpx.get('http://localhost:8000/health'); r.raise_for_status()"]
interval: 15s
timeout: 5s
retries: 5
start_period: 10s
mcp-memory-postgres:
image: pgvector/pgvector:pg16
container_name: mcp-memory-postgres
profiles:
- memory
environment:
POSTGRES_DB: memorydb
POSTGRES_USER: memuser
POSTGRES_PASSWORD: ${MCP_PG_PASSWORD:-mempass}
volumes:
- mcp-pgdata:/var/lib/postgresql/data
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U memuser -d memorydb"]
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped
mcp-memory-redis:
image: redis:7-alpine
container_name: mcp-memory-redis
profiles:
- memory
ports:
- "6380:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped
volumes:
agentainer-home:
mcp-pgdata: