-
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) · 984 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 984 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
services:
postgres:
image: postgres:16-alpine
container_name: maindeck-postgres
restart: unless-stopped
ports:
- "5432:5432"
environment:
POSTGRES_USER: maindeck
POSTGRES_PASSWORD: maindeck
POSTGRES_DB: maindeck_dev
volumes:
- maindeck_pgdata:/var/lib/postgresql/data
redis:
image: redis:7-alpine
container_name: maindeck-redis
restart: unless-stopped
# Upstash REST API shim — fronts the local Redis with the same HTTP protocol
# @upstash/redis speaks in production. Lets dev use the same client + env
# vars without round-tripping to Vercel's Upstash instance.
serverless-redis-http:
image: hiett/serverless-redis-http:latest
container_name: maindeck-srh
restart: unless-stopped
environment:
SRH_MODE: env
SRH_TOKEN: dev-only-change-me
SRH_CONNECTION_STRING: redis://redis:6379
ports:
- "8079:80"
depends_on:
- redis
volumes:
maindeck_pgdata: