Skip to content

Commit e4bdfa9

Browse files
committed
Docker Compose scripts and docs
1 parent d68db45 commit e4bdfa9

File tree

1 file changed

+59
-1
lines changed

1 file changed

+59
-1
lines changed

docker-compose.yml

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@ volumes: # Named volumes survive podman-compose down/up
1313
mysqldata:
1414
mongodata:
1515
pgadmindata:
16+
redisinsight_data:
1617

1718
###############################################################################
1819
# CORE SERVICE – MCP Gateway
1920
###############################################################################
2021
services:
2122

23+
# ──────────────────────────────────────────────────────────────────────
24+
# MCP Gateway - the main API server for the MCP stack
25+
# ──────────────────────────────────────────────────────────────────────
2226
gateway:
2327
image: localhost/mcpgateway/mcpgateway
2428
build:
@@ -69,7 +73,7 @@ services:
6973
# DATABASES – enable ONE of these blocks and adjust DATABASE_URL
7074
###############################################################################
7175

72-
postgres: # Official image – super-easy defaults
76+
postgres: # Official image – easy defaults
7377
image: postgres:17
7478
environment:
7579
- POSTGRES_USER=postgres
@@ -140,6 +144,60 @@ services:
140144
postgres:
141145
condition: service_healthy
142146

147+
# ──────────────────────────────────────────────────────────────────────
148+
# Redis Insight – a powerful Redis GUI (recently updated)
149+
# ──────────────────────────────────────────────────────────────────────
150+
redis_insight: # 🔧 Redis Insight GUI
151+
image: redis/redisinsight:latest
152+
container_name: redisinsight
153+
restart: unless-stopped
154+
networks: [mcpnet]
155+
ports:
156+
- "5540:5540" # Redis Insight UI (default 5540)
157+
depends_on: # Default stack: Postgres + Redis
158+
redis:
159+
condition: service_started
160+
161+
# ──────────────────────────────────────────────────────────────────────
162+
# Persist data (config, logs, history) between restarts
163+
# ──────────────────────────────────────────────────────────────────────
164+
# volumes:
165+
# - ./redisinsight_data:/data
166+
volumes:
167+
- redisinsight_data:/data # <— persist data in named volume
168+
169+
# ──────────────────────────────────────────────────────────────────────
170+
# Preconfigure Redis connection(s) via env vars
171+
# ──────────────────────────────────────────────────────────────────────
172+
environment:
173+
# Single connection (omit “*” since only one):
174+
- RI_REDIS_HOST=redis # <— your Redis hostname
175+
- RI_REDIS_PORT=6379 # <— your Redis port
176+
- RI_REDIS_USERNAME=default # <— ACL/username (Redis 6+)
177+
#- RI_REDIS_PASSWORD=changeme # <— Redis AUTH password
178+
#- RI_REDIS_TLS=true # <— enable TLS
179+
180+
# Optional: validate self-signed CA instead of trusting all:
181+
# - RI_REDIS_TLS_CA_PATH=/certs/selfsigned.crt
182+
# - RI_REDIS_TLS_CERT_PATH=/certs/client.crt
183+
# - RI_REDIS_TLS_KEY_PATH=/certs/client.key
184+
# - RI_REDIS_TLS=true # (already set above)
185+
186+
# ──────────────────────────────────────────────────────────────────
187+
# Core Redis Insight settings
188+
# ──────────────────────────────────────────────────────────────────
189+
- RI_APP_HOST=0.0.0.0 # <— listen on all interfaces
190+
- RI_APP_PORT=5540 # <— UI port (container-side)
191+
192+
# ──────────────────────────────────────────────────────────────────
193+
# (Optional) Enable HTTPS for the UI
194+
# ──────────────────────────────────────────────────────────────────
195+
# - RI_SERVER_TLS_KEY=/certs/tls.key
196+
# - RI_SERVER_TLS_CERT=/certs/tls.crt
197+
198+
# ──────────────────────────────────────────────────────────────────────
199+
# Redis Commander – a web-based Redis GUI
200+
# ──────────────────────────────────────────────────────────────────────
143201
# redis_commander: # 🔧 Redis key browser
144202
# image: rediscommander/redis-commander:latest
145203
# restart: unless-stopped

0 commit comments

Comments
 (0)