forked from InsurNiffy/niff-Stellar-shurance
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.33 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.33 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
# Local development services for NiffyInsure.
#
# Usage:
# docker compose up -d # start all services
# docker compose up -d redis # start Redis only
# docker compose down -v # stop and remove volumes
#
# Environment variables are read from .env (gitignored).
# Copy .env.example to .env and fill in values before starting.
services:
redis:
image: redis:7-alpine
container_name: niffyinsure-redis
restart: unless-stopped
ports:
- "${REDIS_PORT:-6379}:6379"
command: >
redis-server
--requirepass "${REDIS_PASSWORD:-devpassword}"
--maxmemory 256mb
--maxmemory-policy allkeys-lru
--save ""
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD:-devpassword}", "ping"]
interval: 5s
timeout: 3s
retries: 5
start_period: 5s
# ── Future services (uncomment when ready) ───────────────────────────────
# postgres:
# image: postgres:16-alpine
# environment:
# POSTGRES_DB: niffyinsure
# POSTGRES_USER: niffyinsure
# POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-devpassword}
# ports:
# - "5432:5432"
# volumes:
# - postgres_data:/var/lib/postgresql/data
volumes:
redis_data:
# postgres_data: