-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
51 lines (47 loc) · 1.22 KB
/
docker-compose.dev.yml
File metadata and controls
51 lines (47 loc) · 1.22 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
49
50
51
# ===========================================
# Grammarly Clone - Development Services
# ===========================================
# Lightweight version with only database services
# Use: docker-compose -f docker-compose.dev.yml up -d
services:
# PostgreSQL Database
postgres:
image: postgres:15-alpine
container_name: grammarly_postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: grammarly_clone
ports:
- "5434:5432"
volumes:
- grammarly_postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
# Redis Cache
redis:
image: redis:7-alpine
container_name: grammarly_redis
restart: unless-stopped
ports:
- "6381:6379"
volumes:
- grammarly_redis_data:/data
command: redis-server --appendonly yes
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
grammarly_postgres_data:
name: grammarly_postgres_data
grammarly_redis_data:
name: grammarly_redis_data
networks:
default:
name: grammarly_network