-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 1.1 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
services:
postgres:
image: postgres:16
container_name: notpadd-db
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-notpadd}
ports:
- "5437:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7
container_name: notpadd-redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis-data:/data
command: redis-server --save 60 1 --loglevel warning
redis-http-proxy:
image: hiett/serverless-redis-http:latest
container_name: notpadd-upstash-proxy
restart: unless-stopped
ports:
- "8080:80"
environment:
- SRH_MODE=env
- SRH_TOKEN=notpadd_local_secret
- SRH_CONNECTION_STRING=redis://redis:6379
depends_on:
- redis
volumes:
postgres-data:
name: notpadd-postgres-data
redis-data:
name: notpadd-redis-data