-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
36 lines (34 loc) · 825 Bytes
/
compose.yml
File metadata and controls
36 lines (34 loc) · 825 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
services:
redis:
image: redis:7-alpine
container_name: realtime-redis
platform: linux/amd64
ports:
- "6379:6379"
volumes:
- realtime-redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
postgres:
image: postgres:16-alpine
container_name: realtime-postgres
platform: linux/amd64
environment:
POSTGRES_DB: realtime_test
POSTGRES_USER: realtime
POSTGRES_PASSWORD: realtime_password
ports:
- "5432:5432"
volumes:
- realtime-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U realtime -d realtime_test"]
interval: 5s
timeout: 3s
retries: 5
volumes:
realtime-redis-data:
realtime-postgres-data: