-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
41 lines (37 loc) · 1011 Bytes
/
Copy pathdocker-compose.dev.yml
File metadata and controls
41 lines (37 loc) · 1011 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
38
39
40
41
# Development override for docker-compose.yml
# This file provides simplified configuration for development
# Usage: docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d
version: '3.8'
services:
# Simplified PostgreSQL for development (single instance)
postgres-dev:
image: postgres:15
environment:
POSTGRES_DB: payment_processor
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- postgres_dev_data:/var/lib/postgresql/data
- ./migrations:/docker-entrypoint-initdb.d/
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
# Simplified Redis for development
redis-dev:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_dev_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_dev_data:
redis_dev_data: