-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 904 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (34 loc) · 904 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
version: '3.8'
services:
# Your existing Postgres config...
postgres:
image: postgres:16-alpine
container_name: shadow_postgres
environment:
POSTGRES_USER: shadow_admin
POSTGRES_PASSWORD: shadow_password
POSTGRES_DB: shadow_ai
ports:
- "5432:5432"
volumes:
- shadow_pg_data:/var/lib/postgresql/data
# 1. The actual Local Redis Database
redis:
image: redis:alpine
container_name: shadow_redis
ports:
- "6379:6379"
# 2. The Upstash REST Proxy (Translates HTTP to Redis TCP)
upstash-proxy:
image: hiett/serverless-redis-http:latest
container_name: shadow_upstash_proxy
ports:
- "8079:80"
environment:
- SRH_MODE=env
- SRH_TOKEN=local_dev_token
- SRH_CONNECTION_STRING=redis://redis:6379 # Connects to the redis container above
depends_on:
- redis
volumes:
shadow_pg_data: